question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate empty project, and it don't work. Got error with FBReactNativeSpec

See original GitHub issue

Generate 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:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
mattwobertscommented, Sep 22, 2021

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. 🤷‍♂️

3reactions
runna-appcommented, Sep 21, 2021

Same here, I got the below error. It only happened after I upgraded to xcode 13.0.

The following build commands failed:
	PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/walterholohan/Library/Developer/Xcode/DerivedData/RunBuddyApp-hhmrukrpzbiedrarkmcxmxfgirkq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-337605CB7CDF90939BEBF863ED22C375.sh (in target 'FBReactNativeSpec' from project 'Pods')
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found