I'm getting the following error when compiling for iOS in FDT (OSX):
Packaging failed!
Packaging error message:
Compilation failed while executing : compile-abc
Packaging output:
/var/folders/96/gkk__zq13zg7z70dlp_lnw580000gq/T/cmd973180567546602806.tmp: line 2: /Users/ben/Documents/work/resources/flash/flex_sdk_4.6.0/lib/aot/bin/compile-abc/compile-abc: Permission denied
/var/folders/96/gkk__zq13zg7z70dlp_lnw580000gq/T/cmd6338527548194546742.tmp: line 2: /Users/ben/Documents/work/resources/flash/flex_sdk_4.6.0/lib/aot/bin/compile-abc/compile-abc-64: Permission denied
I'm using the AIR 18 Beta, I've tried with 17 with the same issue.
I've had to use Java 1.7 rather than 1.6 as this is a requirement for the latest version of FDT.
I've created a clean project with no additional libraries but I'm still seeing the issue.
I can compile for desktop and Android without the issue.
Any help would be appreciated.
Ben
check out these links:
http://www.flashdeveloper.co/post/111191611037/compilation-failed-while-executing-compile-abc
http://forum.starling-framework.org/topic/cannot-build-with-air-16
Also please keep in mind, that you use an AIR BETA version.
Maybe you could also check, if your SDK user access rights are set.
Related
I have created fresh project(Hello World) in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which I am unable to build / run the xcode project. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
Following is my dev env:
Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```
XCode Logs:
> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.
> Task :shared:compileKotlinIosX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]
I reached out to community for this and finally found the solution. Here is the link to that issue which I raised and solved this problem.
If anyone else is going through this same issue it mostly cause of corrupted kotlin file.
Also try checking your cmd line tools in XCode as per comments.
Hope this helps someone. Cheers.
If the project doesn't run right away even on opening it from Xcode and shows the shared framework is missing, Then try generating the shared framework for iOS platform using terminal. Navigate to the project folder and execute
Command: ./gradlew packForXcode Now the shared framework should have a xcode-frameworks product and you should be able to build and run the project through Xcode.
This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.
I've been trying to solve this issue for two weeks and cannot seem to find a solution, it only happens on Appium desktop with automationName set to UiAutomator.
I changed ownership of the /tmp folder from Root to user and set permissions to 777 but still facing the issue: I cannot change the file's permission since it's a temp folder and its name keeps changing every time I run a new appium session.
This is the error message:
An unknown server-side error occurred while processing the command. Original error: The application at '/tmp/.mount_app.Ap8xEj5P/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Please grant write permissions to this file or to its parent folder '/tmp/.mount_app.Ap8xEj5P/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks' for the Appium process, so it could sign the application
You could try to grant permission on /users/username/node_modules, /usr/local or /usr/bin. I ran in the same problem while trying to use UIAutomator2 on macOS and granting permissions gradually. Also, if you have the latest version of Appium, you need to switch to UIAutomator2, starting v12.1 UIAutomator is no longer supported.
Another hint: don't mix UIAutomator with UIAutomator2, check that you are trying to launch with correct capabilities
This bug plagued me for weeks before resolving it. The issue ended up being my Java version. I did NOT have to modify signing or read / write privileges on the file in question.
JAVA_HOME and Path environment variables were both pointing to Java 12. I needed to install jdk_1.8.0 for Java 8, and update JAVA_HOME and Path to point to Java 8. More info and possible solutions can be found on my GitHub issue that I opened with Appium devs:
https://github.com/appium/appium-desktop/issues/1080
I've created a test Xamarin.Forms project with all the defaults using the cross-platform. But when I run it I am getting this error and I don't know how to fix it. I re-installed Xamarin few times but still getting the same error. It won't even compile.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 (Test)
Please help.
This is probably related to the Java SE Development kit.
You need to download it and then it should work.
Look at the following post:
https://forums.xamarin.com/discussion/62664/error-java-lang-unsupportedclassversionerror-com-android-dx-command-main-createdatabasewithadonet
I am using PhoneGap to build applications.
Application runs properly on emulator but when push notification plug in is added to project it gives build errors.
I searched this issue...initially it was found to be a common issue to many people...tried all solutions...but still the same build errors.
here is the plug in
sudo cordova plugin add phonegap-plugin-push
one of the solution said try out with 1.2.3 version of push notification i.e
sudo cordova plugin add phonegap-plugin-push#1.2.3
There were no errors using this version but then it is older version want a solution with the latest version.
The latest is working on windows machine but not on MAC.
Here is the detailed error when used latest version
ANDROID_HOME=/Users/bunty/Library/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.android.support:support-v13:23+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
Required by:
:android:unspecified
> Could not find any version that matches com.google.android.gms:play-services-gcm:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 37.885 secs
Error: Error code 1 for command: /Users/bunty/Documents/ParsianaApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/bunty/Documents/ParsianaApp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Can anyone help on this ?
If you read the install guide
You will need to ensure that you have installed the following items
through the Android SDK Manager:
Android Support Library version 23 or greater
Android Support Repository version 20 or greater
Google Play Services version 27 or greater
Google Repository version 22 or greater
You can do it manually or using this command:
android update sdk --no-ui --filter "extra"
Dont use sudo for installing. It causes permissions issues.
I am trying to add the iOS platform to my cordova project but I keep coming across the same error. I have followed the instructions here.
When I use cordova platform add ios it gives me the following error
Shauns-MacBook-Pro:hello shaunbrown$ cordova platform add ios
Creating ios project...
Unknown option: n
Usage: head [-options] <url>...
Cordova can only run in Xcode version 4.6 or greater.
Error: /Users/shaunbrown/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
I have tried looking around for the error but I can't find anything.
I am running xCode 5.1.1 so I know it doesn't have anything to do with that. Has anyone else came across this issue, or has a fix for this? I am pulling my hair out trying to fix it and so far I havent got anywhere.
I can provide more information if needed.
I managed to solve this. I opened my .bash_profile file and commented out the line that referred to my XAMPP installation.
I then restarted terminal and it worked perfectly.
You might have Xcode 5.x, but your command line tools are probably set up for a previous version.
Type:
xcodebuild -version
In a terminal. If you need to update, read this:
Xcode 4.4 and later install Command Line Tools