I've got a project that I've been working on for a number of years, and everything was going really well making some changes this afternoon, until…
Xcode has stopped compiling the application. It's an ObjC application for the iPad. I get a Shell Script Invocation Error:
Source is /Users/andrew/Developer/SalesIQ/SalesIQ/SalesIQ/SalesIQ-Info.plist
Build is /Users/andrew/Library/Developer/Xcode/DerivedData/SalesIQ-cflsbctuolgqvpbqmuzvrkuopvkl/Build/Products/Debug-iphonesimulator/SalesIQ.app/Info.plist
missing file /Users/andrew/Library/Developer/Xcode/DerivedData/SalesIQ-cflsbctuolgqvpbqmuzvrkuopvkl/Build/Products/Debug-iphonesimulator/SalesIQ.app/Info.plist
Command /bin/sh failed with exit code 1
I've even tried checking out an earlier version of the application and I still get the same error, which confuses me.
Can anyone nudge me in the right direction?
Edit: I should note that I've done a clean and build. I've rebooted. I've tried Xcode 6.0 and the 6.1 beta, and no matter what I do this error is still there.
The missing file warning is misleading. For some unknown reason, a custom script that was run during the build was failing. I deleted the Run Script task, then added it back in, and it's all good.
Weird…
Related
I am trying to compile kotlin multiplatform, which contains iOS target.
I tried different examples over github, but most of them are outdated and don't work, probably because of incompatibility with current tools. Thing, that seems most reasonable is creating Mobile Android/iOS | Gradle or Mobile Shared Library | Gradle project using IntelliJ Idea.
When I create brand new project, I am still getting same error:
> Task :app:compileKotlinIos FAILED
e: Could not find "stdlib" in [~/git/iosandroidtest, ~/.konan/klib, ~/.konan/kotlin-native-macos-1.3.61/klib/common, ~/.konan/kotlin-native-macos-1.3.61/klib/platform/ios_x64].
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileKotlinIos'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
I am using kotlin 1.3.61, xcode 11.3. Any ideas?
Edit:
I pushed empty project (without any changes from me) to github:
https://github.com/hovi/iostest
I think you just ran into a bug with partial archive download.
Per the author there, "I got a snapshot of the .konan directory. It's interesting as it looks like part of the runtime download is there, but some parts are missing. Specifically in this case the common folder in klib, but also the licenses folder.
I was able to repro this locally by killing the build process while the archive is being extracted. For reference, see NativeCompilerDownloader. It looks to see if the folder is there. If not, it'll download and extract. If yes, the build process assumes everything is OK. ... Their local build will certainly be broken from then on until they clean and rebuild ~.konan." I suggest you report your issue there as well. (btw - tried your project in IJ and AS (as well as creating new lib project in IJ), didn't have any issues. Somehow your bad luck with an interrupted download (:))
Link to GitHub issue
I have an older project that's using this method to create multiple environments.
It built fine 2 weeks ago. Today I opened up xcode, it asked to make changes (which were downloading the new simulators), and now the project wont build.
I'm getting this error:
error: unable to read property list from file: /Users/{user}/Library/Developer/Xcode/DerivedData/{proj}-axqsdaitnghejddytagzzurgxvka/Build/Intermediates.noindex/{proj}.build/PROD-iphonesimulator/{proj}.build/Preprocessed-Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 0.)
Literally nothing has changed except the simulator update. I've checked my build script and everything else.
Any thoughts?
Thanks
Turns out -e is no longer a valid flag so it was printing -e in the preprocess.h file and then copying it over to the Preprocess-Info.plist. Because of this Xcode couldn't open the .plist file and the app wouldn't build.
So I just needed to remove the -e flags from all the echo statements in the build script.
Any idea why is that I have to clean my project, delete com.google.Symbol* and restart XCode every time I build a project that uses Firebase/Crash?
The problem seem to be with the uploading symbols script for Firebase/Crash.
Here is the process I need to perform everytime I want to run the project.
Clean project with (Shif+Command+K)
In the terminal delete com.google.Symbol
rm $HOME/Library/Preferences/com.google.Symbol*
Restart XCode
Run. It works fine but only one time, if I run it a second time I get an error.
ERROR: This is the error I get if I run the project a second time.
Here is my project and the path for the script.
If I check the Run script only when installing option in XCode, the project runs fine every time, but errors don't get symbolicated when shown in Firebase console.
Any idea what could I do to solve this issue?
FYI - I tried changing the path as follow but the behavior was the same.
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/Firebase-keys/firebase-crashreporting.json
I faced the same issue a few days ago, and it was really annoying. Use this script instead of the current one, this worked for me:
"${PODS_ROOT}"/FirebaseCrash/upload-sym-util.bash ${SRCROOT}/Project/Firebase_Crash.json
I keep trying to run my Xcode project (named "ppsideloader") and it keeps giving me 2 errors. Also I Cleaned and Built many times then tried to run, but still same problem.
First Error:
/Users/myUser/Library/Developer/Xcode/DerivedData/ppsideloader-flikuhbwvklweghesxwygrfiylum/Build/Products/Debug-iphoneos/ppsideloader.app/*.dylib: No such file or directory
Second Error:
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
My Build Phases:
I don't know what to do, I tried almost everything. Can someone please help me ?
#Emm...I also faced Same Issue. But the issue is fixed when i re install xcode and restarted my machine.
Try the Same i hope that it will be helpfull to you
I have started getting this issue now after going through a lot of "chaos" with performing a system restore (I'm on Win8.1) while trying to get a certain game working again. Now that that mess is over and done with, I have been left with a few apps and such removed and needing to be reinstalled, including the JDK which I have already reinstalled. Since I have a project I need to work on I opened up DartEditor again and when I tried to do pub build I get this error:
Pub build failed, [255] Wrong script snapshot version, expected
'f6711525cff9f7d0d08595166664b767' found '836a274342f7f88d6b5a9bb59b2649a9'
Googling led me to this old issue but that's labelled as fixed...what could be going wrong here?
Ok, so deleting the dart directory (the one with the editor executable, relevant .jar files and all that other stuff) and downloading it anew did resolve my issue. I'm curious though as to whether anyone knows what might have caused the issue, and/or what other things I might have been able to do to resolve it.