Generate empty project, and it don't work. Got error with FBReactNativeSpec
See original GitHub issueGenerate empty project with react-native init or npx react-native init after initialisation try to run it by npx react-native run-ios or yarn ios got:
................................................................ very long error log
export XPCSERVICES_FOLDER_PATH\=/XPCServices
export YACC\=yacc
export arch\=undefined_arch
export variant\=normal
/bin/sh -c /Users/user/Library/Developer/Xcode/DerivedData/OneMemoryTrainer-anzcpjajptojuucqsghepeaylias/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-337605CB7CDF90939BEBF863ED22C375.sh
Command PhaseScriptExecution failed with a nonzero exit code
/Users/user/projects/my/OneMemoryTrainer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'boost-for-react-native' from project 'Pods')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the OneMemoryTrainer editor. (in target 'OneMemoryTrainer' from project 'OneMemoryTrainer')
/Users/user/projects/my/OneMemoryTrainer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'Flipper-PeerTalk' from project 'Pods')
/Users/user/projects/my/OneMemoryTrainer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'Flipper-Glog' from project 'Pods')
/Users/user/projects/my/OneMemoryTrainer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'YogaKit' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/user/Library/Developer/Xcode/DerivedData/OneMemoryTrainer-anzcpjajptojuucqsghepeaylias/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-337605CB7CDF90939BEBF863ED22C375.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)
react-native -v
react-native-cli: 2.0.1
react-native: 0.65.1
macOS 11.6 BigSur xed version 13.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
PhaseScriptExecution [CP-User] error in React Native
Move the project folder in a path with no spaces (i.e. ~/sub folder name/ReactNativeApp won't work till you have spaces in the path,...
Read more >Troubleshooting - React Native
This error indicates that the codegen script that is injected into the Xcode build pipeline has exited early. You may get this for...
Read more >Troubleshooting common React Native bugs - LogRocket Blog
This troubleshooting guide shares how to easily find and address common React Native bugs. See common error examples.
Read more >phasescriptexecution failed with a nonzero exit code react native
I have tried to build the React Native project in Xcode 13.1, but getting the following error. Checked the several answers, but nothing...
Read more >"Build input file cannot be found" | Apple Developer Forums
I got the same error, was actually migrating a branch of my project from UI Kit to swiftUI and also added scene ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For my issue, I was able to make things work again by following these instructions:
https://github.com/lottie-react-native/lottie-react-native/issues/739#issuecomment-801850269
Specifically, in my project, I created a new swift file. After naming the file, Xcode asked me if I wanted to create a bridging header. I said yes, built the app, and now all is good again. 🤷♂️
Same here, I got the below error. It only happened after I upgraded to xcode 13.0.