Syncing with Swift Package Manager in AppCode fails: attempt to write a readonly database - appcode

With AppCode 2020.3, "syncing" my XCode projects fails. I only got the following error message, which says "attempt to write a readonly database":
Package manifest execution failed with exit code 1:
/Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK: error: error: accessing build database "/Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK/.build/manifest.db": attempt to write a readonly database

I was able to fix this by changing enabling adding write permissions:
chmod 774 /Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK/.build/manifest.db
More details: I needed to add permissions to the users in the files "group" (staff).
I have posted this as a bug report on youtrack, as this does not happen in XCode.

Related

Unable to find package 'Swashbuckle.AspNetCore.SwaggerUI.6.2.3'

I'm using swagger, but I have this problem according to the documentation. The nuget package has not been downloaded successfully. What should I do?
This is the error message:
Severity Code Description Project File Line Suppression State Error
The feed'nuget.org [https://api.nuget.org/v3/index.json]' lists
package'Swashbuckle.AspNetCore.SwaggerUI.6.2.3' but multiple attempts
to download the nupkg have failed. The feed is either invalid or
required packages were removed while the current operation was in
progress. Verify the package exists on the feed and try again. Unable
to find package'Swashbuckle.AspNetCore.SwaggerUI.6.2.3'.
Update:
I try to use the command:Install-Package Swashbuckle.AspNetCore -Version 6.2.3
Error:
Maybe a problem on your internet connection? Package seems exist (https://www.nuget.org/packages/Swashbuckle.AspNetCore.SwaggerUI/6.2.3).

I was trying to create a new Liferay Plugin Project and it showed the following error

I changed the ivy.jar.url to the above mentioned url and now it came up with a new error as follows:
[Console output redirected to
file:C:\Rahul13615\liferay.metadata.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: C:\Rahul13615\liferay\plugins\portlets\build.xml
[get] Getting: https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To: C:\Rahul13615\liferay\plugins.ivy\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
BUILD FAILED
C:\Rahul13615\liferay\plugins\portlets\build.xml:5: The following error occurred while executing this line:
C:\Rahul13615\liferay\plugins\build-common-plugins.xml:5: The following error occurred while executing this line:
C:\Rahul13615\liferay\plugins\build-common.xml:47: The following error occurred while executing this line:
C:\Rahul13615\liferay\plugins\build-common-ivy.xml:102: The following error occurred while executing this line:
C:\Rahul13615\liferay\plugins\build-common-ivy.xml:38: The following error occurred while executing this line:
C:\Rahul13615\liferay\plugins\build-common-ivy.xml:48: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-ANT_HOME\lib
-the IDE Ant configuration dialogs
Total time: 11 seconds
Below please find my steps how I created a new Liferay Plugin Project.
I hope this will be useful to you:
I have downloaded Liferay Developer Studio 3.0.1. GA2 from:
htt ps://web.liferay.com/downloads/liferay-projects/liferay-ide or
ht tps://sourceforge.net/projects/lportal/files/Liferay%20IDE/
Note: there are some known issue with the 3.0.0 version
I extracted the IDE to C:\dstudio3 on my computer
I downloaded the Liferay SDK from:
http s://www.liferay.com/downloads?559250categoryIds=559255
(bottom of the page, additional files section)
I copied the SDK to the IDE's folder and created a personalized build.peter.properties file, based on:
htt ps://web.liferay.com/community/forums/-/message_boards/message/76813485
I started Eclipse and set up a new Liferay Server environment
In Eclipse, I created a new "Liferay Plugin Project", and in the wizard, I defined the location of the Plugins SDK.
I created a new Liferay Portlet project inside the Plugin project.
Best Regards,
Peter

facing this error while building a project in xcode

facing this error while building a project in xcode
warning: unable to merge a subprocess's serialized diagnostics
error: unable to open output file '/Users/s-09/Library/Developer/Xcode/DerivedData/ls-cujvtldtpxrezhdhbujnmfcrntjl/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVPluginResult.o': 'Error opening output file '/Users/s-09/Library/Developer/Xcode/DerivedData/ls-cujvtldtpxrezhdhbujnmfcrntjl/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVPluginResult.o': Input/output error'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Cleaning the /DerivedData made it work
Can I safely delete contents of Xcode Derived data folder?
I have also faced that problem. I have closed, restarted Xcode; deleted the application from device and reinstalled it again, then the problem has gone.
Make sure the library and project files is truly included if it is not include it shows in red color in this type of case some time it is in original folder and not in project so delete it and add it again.

Adobe Air Application-sandbox content cannot access this feature

Error #3207: Application-sandbox content cannot access this feature.: SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
Hi all,
I have an air project that I am trying to run via a terminal using run-air command. If I run it in flash builder it seems to run with no errors, but after using a makefile to build the project and then run the code via run-air in the terminal I get the above error. Before I Was getting the same error and put a try catch around the code, however, I can't do that in this part of the code and don't want to put a try catch everywhere I get this error. I would rather just fix it. It seems to get called whenever my code is trying to access a class via a swc or import.
Anyone have suggestions?
I have tried:
Security.allowDomain("*");
which through the same error, so I put a try catch around it and now it moves on and I Get the above error when I Try to load a swc.
Also we are adding the src folder to the class that is throwing the error above via the compiler properties (we are doing unit tests) and using a makefile to build the project. If we didn't put it in compiler properties the class never seems to get picked up.

Team Build sends error when trying to compile a Structuremap method

I'm getting a strange error when trying to compile a solution that is using StructureMap on Team Build.
When I try to compile the solution locally on Visual Studio it works fine, but when trying to queue a new build in Team Build I get the following error:
Overload resolution failed because no accessible 'Use' can be called with these arguments:
The line of code that gets this error is the second one:
ForSingletonOf(Of ISessionFactory)().Use(NHibernateSessionFactory.SessionFactory)
Me.For(Of ISession)().lifecycleIs(New HybridLifecycle()).Use(Function(x) x.GetInstance(Of ISessionFactory)().OpenSession())
It's a standard registration for the NHibernate session, so I don't really get why this error pops up.
Thanks in advance for the clues.
Make sure you have the correct version of NHibernate on the build server, and that your hint paths are all appropriately set in your project file. We haven't had this specific issue (as we're not using NHibernate), but we've had weird issues like that being related to version mismatches of "infrastructure" DLLs between local and build.