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.
Related
Since updating the Xcode 10, I cannot build and run my app either on a physical device or on the simulator. I have tried via the terminal and directly through Xcode. What I have tried:
Removing my repo and re pulling.
https://github.com/facebook/react-native/issues/19573
https://github.com/facebook/react-native/issues/14382
https://medium.com/#swyx/if-you-get-a-third-party-config-h-35a3c54e9278
Print: Entry, ":CFBundleIdentifier", Does Not Exist
"config.h" file not found in iOS project of React native
I do not know what is left to do. I have had all the errors outlined in the above links. the main one that I am having trouble with at the moment is that config.h does exist and cfbundleidentifier", does not exist.
After following the instructions layed out in all the links provided, all I needed to do was run npm audit fix and it started working.
I am trying to run the hello world nativescript app using the command "tns run ios" but i am getting "Unable to apply changes on device: <device id>. Error is: ENOENT: no such file or directory, open '/<path_to_project>/NativeTest/platforms/ios/NativeTest.xcodeproj/project.pbxproj'.". Running it in Xcode works. I really ran out of ideas . Also, i checked and the file is actually there
After hours of time spent with this issue i found a fix, so maybe my answer would help somebody else. The issue was caused by me setting in XCode the dev team in the project. After i set the team project for the current project, i create a new project and it automatically got the team id i set at the old project without my intervention and now it works without errors. Yay
ns clean did it for me like it told me to do đŸ˜† The platforms/ios folder appears to be invalid. If the build fails, run 'ns clean' and rebuild the app.
I was running npm run ios
I am using react native to develop my first cross-platform app. On my attempts to archive it, I encounter, the following error. I think it only happens in yoga library(?) or something. The error lies under yoga in the left pane...
Showing Recent Errors Only
SetOwnerAndGroup username:domàˆnen-benutzer /Users/username/Library/Developer/Xcode/DerivedData/ReactHandHeld-asokbujgobowgaaaypozpydvtdur/Build/Intermediates.noindex/ArchiveIntermediates/ReactHandHeld/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a
cd /Users/username/ReactHandHeld/node_modules/react-native/React
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/sbin/chown -RH username:domàˆnen-benutzer /Users/username/Library/Developer/Xcode/DerivedData/ReactHandHeld-asokbujgobowgaaaypozpydvtdur/Build/Intermediates.noindex/ArchiveIntermediates/ReactHandHeld/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a
chown: domàˆnen-benutzer: illegal group name
Command /usr/sbin/chown failed with exit code 1
I had exactly the same issue, I never created any group with german special characters (umlauts), I spent some time trying to figure out where the folder is located on disk or in the project but in vain, then I deleted derived data, cleaned the project, restarted Xcode and everything was working again.
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'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…