react-native: The following build commands failed: PhaseScriptExecution [CP-User]
Description
export VERSION_INFO_FILE\=FBReactNativeSpec_vers.c
export VERSION_INFO_STRING\=\"@\(\#\)PROGRAM:FBReactNativeSpec\ \ PROJECT:Pods-\"
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION\=13C100
export XCODE_VERSION_ACTUAL\=1321
export XCODE_VERSION_MAJOR\=1300
export XCODE_VERSION_MINOR\=1320
export XPCSERVICES_FOLDER_PATH\=/XPCServices
export YACC\=yacc
export arch\=undefined_arch
export variant\=normal
/bin/sh -c /Users/link/Library/Developer/Xcode/DerivedData/rnApp-blqornskbkxcupglcsclzbmwefcw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh
Command PhaseScriptExecution failed with a nonzero exit code
objc[40706]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1fc18ab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1040482c8). One of the two will be used. Which one is undefined.
objc[40706]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1fc18abe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104048318). One of the two will be used. Which one is undefined.
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/link/Library/Developer/Xcode/DerivedData/rnApp-blqornskbkxcupglcsclzbmwefcw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh (in target 'FBReactNativeSpec' from project 'Pods')
Version
0.67.1
Output of npx react-native info
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Memory: 105.55 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.0.0 - ~/.nvm/versions/node/v16.0.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.0.0/bin/yarn
npm: 7.10.0 - ~/.nvm/versions/node/v16.0.0/bin/npm
Watchman: 2022.01.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.0 => 17.0.0
react-native: 0.67.1 => 0.67.1
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
After creating a new project pod install
, there are times of errors in executing yarn ios
, but it can work by executing sudo yarn ios
Snack, code example, screenshot, or link to a repository
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (3 by maintainers)
I downgraded
react-native
to0.66.0
and it worksI’m thinking to switch to Flutter bc of React native errors at the M1 chip lol
I switched back to expo lol
A colleague told me that it’s fixed with 0.68 since the
find_node
script which causes the problem is no longer used, but I didn’t have time to check it myself. In the meantime, you can runnvm unalias default
on your terminal as a workaroundI ultimately fixed it thanks to this SO answer, which basically says to run
nvm unalias default
. It’s not optimal but it worked.Same for me. 0.67.1 can not run on iOS
Man I’m so close to diving into Flutter to see the difference it’s not even funny. Making a consistently stable app is virtually impossible.