react-native: Command PhaseScriptExecution failed with a nonzero exit code
Description
I set up a project using the npx react-native@latest init MyProject
And when I try to run it on my iPhone using npm run ios
the console prints out a Command PhaseScriptExecution failed with a nonzero exit code.
Steps to reproduce
- git clone git@github.com:AlexandreLemoine40/ReactNative-Bug.git
- cd ReactNative-Bug
- npm install
- cd ios
- pod install
- cd …
- npx react-native run-ios
React Native Version
0.73.1
Affected Platforms
Runtime - iOS, Build - MacOS
Output of npx react-native info
System:
OS: macOS 14.2.1
CPU: (8) arm64 Apple M2
Memory: 73.19 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.10.0
path: /usr/local/bin/node
Yarn: Not Found
npm:
version: 10.2.5
path: /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.14.3
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.1/15C65
path: /usr/bin/xcodebuild
Languages:
Java: Not Found
Ruby:
version: 3.3.0
path: /Users/alexandre/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.1
wanted: 0.73.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Stacktrace or Logs
error Failed to build iOS project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'MyProject.xcworkspace'.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace MyProject.xcworkspace -configuration Debug -scheme MyProject -destination id=00008110-000C201E36F9801E
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Prepare packages
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (64 targets)
Target 'MyProject' in project 'MyProject'
➜ Implicit dependency on target 'Pods-MyProject' in project 'Pods' via file 'libPods-MyProject.a' in build phase 'Link Binary'
➜ Implicit dependency on target 'CocoaAsyncSocket' in project 'Pods' via options '-lCocoaAsyncSocket' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'DoubleConversion' in project 'Pods' via options '-lDoubleConversion' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Flipper' in project 'Pods' via options '-lFlipper' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods' via options '-lFlipper-Boost-iOSX' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Flipper-Fmt' in project 'Pods' via options '-lFlipper-Fmt' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Flipper-Folly' in project 'Pods' via options '-lFlipper-Folly' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Flipper-PeerTalk' in project 'Pods' via options '-lFlipper-PeerTalk' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'FlipperKit' in project 'Pods' via options '-lFlipperKit' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'RCT-Folly' in project 'Pods' via options '-lRCT-Folly' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'RCTTypeSafety' in project 'Pods' via options '-lRCTTypeSafety' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-Codegen' in project 'Pods' via options '-lReact-Codegen' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-Core' in project 'Pods' via options '-lReact-Core' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-CoreModules' in project 'Pods' via options '-lReact-CoreModules' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-Fabric' in project 'Pods' via options '-lReact-Fabric' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-FabricImage' in project 'Pods' via options '-lReact-FabricImage' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-ImageManager' in project 'Pods' via options '-lReact-ImageManager' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-Mapbuffer' in project 'Pods' via options '-lReact-Mapbuffer' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-NativeModulesApple' in project 'Pods' via options '-lReact-NativeModulesApple' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTAnimation' in project 'Pods' via options '-lReact-RCTAnimation' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTAppDelegate' in project 'Pods' via options '-lReact-RCTAppDelegate' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTBlob' in project 'Pods' via options '-lReact-RCTBlob' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTFabric' in project 'Pods' via options '-lReact-RCTFabric' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTImage' in project 'Pods' via options '-lReact-RCTImage' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTLinking' in project 'Pods' via options '-lReact-RCTLinking' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTNetwork' in project 'Pods' via options '-lReact-RCTNetwork' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTSettings' in project 'Pods' via options '-lReact-RCTSettings' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTText' in project 'Pods' via options '-lReact-RCTText' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-RCTVibration' in project 'Pods' via options '-lReact-RCTVibration' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-cxxreact' in project 'Pods' via options '-lReact-cxxreact' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-debug' in project 'Pods' via options '-lReact-debug' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-graphics' in project 'Pods' via options '-lReact-graphics' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-hermes' in project 'Pods' via options '-lReact-hermes' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-jserrorhandler' in project 'Pods' via options '-lReact-jserrorhandler' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-jsi' in project 'Pods' via options '-lReact-jsi' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-jsiexecutor' in project 'Pods' via options '-lReact-jsiexecutor' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-jsinspector' in project 'Pods' via options '-lReact-jsinspector' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-logger' in project 'Pods' via options '-lReact-logger' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-nativeconfig' in project 'Pods' via options '-lReact-nativeconfig' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-perflogger' in project 'Pods' via options '-lReact-perflogger' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-rendererdebug' in project 'Pods' via options '-lReact-rendererdebug' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-runtimescheduler' in project 'Pods' via options '-lReact-runtimescheduler' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'React-utils' in project 'Pods' via options '-lReact-utils' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'ReactCommon' in project 'Pods' via options '-lReactCommon' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'SocketRocket' in project 'Pods' via options '-lSocketRocket' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'Yoga' in project 'Pods' via options '-lYoga' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'fmt' in project 'Pods' via options '-lfmt' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'glog' in project 'Pods' via options '-lglog' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'libevent' in project 'Pods' via options '-llibevent' in build setting 'OTHER_LDFLAGS'
Target 'Pods-MyProject' in project 'Pods'
➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'FBLazyVector' in project 'Pods'
➜ Explicit dependency on target 'FBReactNativeSpec' in project 'Pods'
➜ Explicit dependency on target 'Flipper' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods'
➜ Explicit dependency on target 'Flipper-DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Fmt' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Folly' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Glog' in project 'Pods'
➜ Explicit dependency on target 'Flipper-PeerTalk' in project 'Pods'
➜ Explicit dependency on target 'FlipperKit' in project 'Pods'
➜ Explicit dependency on target 'OpenSSL-Universal' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-CoreModules' in project 'Pods'
➜ Explicit dependency on target 'React-Fabric' in project 'Pods'
➜ Explicit dependency on target 'React-FabricImage' in project 'Pods'
➜ Explicit dependency on target 'React-ImageManager' in project 'Pods'
➜ Explicit dependency on target 'React-Mapbuffer' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-RCTActionSheet' in project 'Pods'
➜ Explicit dependency on target 'React-RCTAnimation' in project 'Pods'
➜ Explicit dependency on target 'React-RCTAppDelegate' in project 'Pods'
➜ Explicit dependency on target 'React-RCTBlob' in project 'Pods'
➜ Explicit dependency on target 'React-RCTFabric' in project 'Pods'
➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'React-RCTLinking' in project 'Pods'
➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'React-RCTSettings' in project 'Pods'
➜ Explicit dependency on target 'React-RCTText' in project 'Pods'
➜ Explicit dependency on target 'React-RCTVibration' in project 'Pods'
➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'React-hermes' in project 'Pods'
➜ Explicit dependency on target 'React-jserrorhandler' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-jsinspector' in project 'Pods'
➜ Explicit dependency on target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'React-nativeconfig' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-rncore' in project 'Pods'
➜ Explicit dependency on target 'React-runtimeexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'SocketRocket' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
➜ Explicit dependency on target 'boost' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
➜ Explicit dependency on target 'libevent' in project 'Pods'
Target 'React-jserrorhandler' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Mapbuffer' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
Target 'React-RCTAppDelegate' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-CoreModules' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-RCTFabric' in project 'Pods'
➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'React-hermes' in project 'Pods'
➜ Explicit dependency on target 'React-nativeconfig' in project 'Pods'
➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTFabric' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-Fabric' in project 'Pods'
➜ Explicit dependency on target 'React-FabricImage' in project 'Pods'
➜ Explicit dependency on target 'React-ImageManager' in project 'Pods'
➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'React-RCTText' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-nativeconfig' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-nativeconfig' in project 'Pods' (no dependencies)
Target 'React-Mapbuffer' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
Target 'React-FabricImage' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Fabric' in project 'Pods'
➜ Explicit dependency on target 'React-ImageManager' in project 'Pods'
➜ Explicit dependency on target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-ImageManager' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-Fabric' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
Target 'React-Fabric' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-graphics' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
Target 'React-CoreModules' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-RCTBlob' in project 'Pods'
➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'SocketRocket' in project 'Pods'
Target 'React' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-RCTActionSheet' in project 'Pods'
➜ Explicit dependency on target 'React-RCTAnimation' in project 'Pods'
➜ Explicit dependency on target 'React-RCTBlob' in project 'Pods'
➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'React-RCTLinking' in project 'Pods'
➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'React-RCTSettings' in project 'Pods'
➜ Explicit dependency on target 'React-RCTText' in project 'Pods'
➜ Explicit dependency on target 'React-RCTVibration' in project 'Pods'
Target 'React-RCTVibration' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTText' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
Target 'React-RCTSettings' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTLinking' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTImage' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTBlob' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-RCTNetwork' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-RCTAnimation' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'React-Codegen' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'FBReactNativeSpec' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-rncore' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-rncore' in project 'Pods' (no dependencies)
Target 'React-NativeModulesApple' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-runtimeexecutor' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-RCTActionSheet' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
Target 'FlipperKit' in project 'Pods'
➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'
➜ Explicit dependency on target 'Flipper' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Folly' in project 'Pods'
➜ Explicit dependency on target 'Flipper-PeerTalk' in project 'Pods'
➜ Explicit dependency on target 'SocketRocket' in project 'Pods'
Target 'Flipper-PeerTalk' in project 'Pods' (no dependencies)
Target 'Flipper' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Folly' in project 'Pods'
Target 'Flipper-Folly' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods'
➜ Explicit dependency on target 'Flipper-DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Fmt' in project 'Pods'
➜ Explicit dependency on target 'Flipper-Glog' in project 'Pods'
➜ Explicit dependency on target 'OpenSSL-Universal' in project 'Pods'
➜ Explicit dependency on target 'libevent' in project 'Pods'
Target 'OpenSSL-Universal' in project 'Pods' (no dependencies)
Target 'Flipper-Glog' in project 'Pods' (no dependencies)
Target 'Flipper-Fmt' in project 'Pods' (no dependencies)
Target 'Flipper-DoubleConversion' in project 'Pods' (no dependencies)
Target 'Flipper-Boost-iOSX' in project 'Pods' (no dependencies)
Target 'FBReactNativeSpec' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
Target 'ReactCommon' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'RCTTypeSafety' in project 'Pods'
➜ Explicit dependency on target 'FBLazyVector' in project 'Pods'
➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
➜ Explicit dependency on target 'React-Core' in project 'Pods'
Target 'React-Core' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-Core-RCTI18nStrings' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-hermes' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-jsinspector' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'SocketRocket' in project 'Pods'
➜ Explicit dependency on target 'Yoga' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'Yoga' in project 'Pods' (no dependencies)
Target 'SocketRocket' in project 'Pods' (no dependencies)
Target 'React-runtimescheduler' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'React-runtimeexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-utils' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
Target 'React-rendererdebug' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
Target 'React-hermes' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-jsinspector' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-jsiexecutor' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-cxxreact' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
➜ Explicit dependency on target 'React-debug' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'React-jsinspector' in project 'Pods'
➜ Explicit dependency on target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
➜ Explicit dependency on target 'React-runtimeexecutor' in project 'Pods'
➜ Explicit dependency on target 'boost' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'React-runtimeexecutor' in project 'Pods'
➜ Explicit dependency on target 'React-jsi' in project 'Pods'
Target 'React-perflogger' in project 'Pods' (no dependencies)
Target 'React-logger' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
Target 'React-jsinspector' in project 'Pods' (no dependencies)
Target 'React-jsi' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'boost' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
Target 'hermes-engine' in project 'Pods' (no dependencies)
Target 'React-debug' in project 'Pods' (no dependencies)
Target 'React-callinvoker' in project 'Pods' (no dependencies)
Target 'React-Core-RCTI18nStrings' in project 'Pods' (no dependencies)
Target 'RCTRequired' in project 'Pods' (no dependencies)
Target 'RCT-Folly' in project 'Pods'
➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
➜ Explicit dependency on target 'boost' in project 'Pods'
➜ Explicit dependency on target 'fmt' in project 'Pods'
➜ Explicit dependency on target 'glog' in project 'Pods'
➜ Explicit dependency on target 'libevent' in project 'Pods'
Target 'libevent' in project 'Pods' (no dependencies)
Target 'glog' in project 'Pods' (no dependencies)
Target 'fmt' in project 'Pods' (no dependencies)
Target 'boost' in project 'Pods' (no dependencies)
Target 'FBLazyVector' in project 'Pods' (no dependencies)
Target 'DoubleConversion' in project 'Pods' (no dependencies)
Target 'CocoaAsyncSocket' in project 'Pods' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
Build description signature: 4c013af38595ca66624a8b2162dc2968
Build description path: /Users/alexandre/Library/Developer/Xcode/DerivedData/MyProject-dumrrxfaoccthkcpgswadgldweio/Build/Intermediates.noindex/XCBuildData/4c013af38595ca66624a8b2162dc2968.xcbuilddata
/Users/alexandre/ReactNative-Bug/ios/MyProject.xcodeproj: error: Signing for "MyProject" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'MyProject' from project 'MyProject')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MyProject' from project 'MyProject')
warning: Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
** BUILD FAILED **
info Run CLI with --verbose flag for more details.
Reproducer
git@github.com:AlexandreLemoine40/ReactNative-Bug2.git
Screenshots and Videos
No response
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 2
- Comments: 19 (1 by maintainers)
For this error
Edit the node_modules/react-native/scripts/react-native-xcode.sh file
I agree with your response, maybe it by-pass this problem. But the main problem is : this error is generated by the official create react native script. We are not supposed to modify blank projects in order to compile them correctly. And the reproducer I linked is the default reproducer without modifications, so it is the same problem, as the reproducer template by default does not work.
Fix this issue by disabling hermes-engine in your podfile. Steps:
arch -x86_64 pod deintegrate && arch -x86_64 pod cache clean --all
:hermes_enabled => false,
Here:
arch -x86_64 pod install
I’m glad I’m not the only one to have this problem. Thank You very much for giving me a solution, I made this issue also for the Facebook Team so they can fix this at the root of the problem.
I’m not closing this issue myself as the answer is a workaround and not a bug resolve, waiting for contributor(s) to go further on this.
My comment was focused on allowing you to run the project. I’m facing the same problem in a productive app and worked all New Year’s Eve looking for a solution to run my project.
I completely agree with you that is necessary to fix the original template to avoid it on new projects.
I used the following code to diagnose the error on the
node_modules/react-native/scripts/react-native-xcode.sh
The function
err_report
noticed to me that the error was found on thefor num in 0 1 2 3 4 5 6 7 8
. Thisfor
was created to get the local ip address of the metro server.As you can see below, I commented the entire for and replaced with the new command, and my build is working fine now.
ios
On Sun, 14 Apr 2024 at 19:50, Dan @.***> wrote:
Hi, I’m still facing the some issue, Tried all the above solutions but with no success, I have added the use_react_native!( :hermes_enabled => false… but it’s still give an error: Hermes-engine: Command PhaseScriptExecution failed with a nonzero exit code Any suggestion? Thanks
Edit the node_modules/react-native/scripts/react-native-xcode.sh file
change the first entry “set -x -e” to “set -x” save & clean the build folder.
@mathews-p thanks its work for me