At react-native
yarn run:ios
When I attempt to launch an present app, an error happens and it would not work.
The execution surroundings is as follows.
System:
OS: macOS 13.6
CPU: (8) arm64 Apple M1
Reminiscence: 179.06 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.20.2 - ~/.nvm/variations/node/v16.20.2/bin/node
Yarn: 1.22.19 - ~/.nodebrew/present/bin/yarn
npm: 8.19.4 - ~/.nvm/variations/node/v16.20.2/bin/npm
Watchman: 2023.09.18.00 - /choose/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Customers/teraichi/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Discovered
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: javac 21 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Discovered
react: 17.0.2 => 17.0.2
react-native: 0.64.4 => 0.64.4
react-native-macos: Not Discovered
npmGlobalPackages:
*react-native*: Not Discovered
Under is an excerpt of the error message that happens when constructing from xCode.
PhaseScriptExecution [CP-User] Generate Specs
/Customers/teraichi/Library/Developer/Xcode/DerivedData/Cucom-
basegvsyhmpmsgdvjavywleoezbw/Construct/Intermediates.noindex/Pods.construct/Debug-
iphonesimulator/FBReactNativeSpec.construct/Script-9666B301DB9D9BA74C1C0CDD9B765E7B.sh
(in goal 'FBReactNativeSpec' from undertaking 'Pods')
...
/Customers/teraichi/Library/Developer/Xcode/DerivedData/Cucom-
basegvsyhmpmsgdvjavywleoezbw/Construct/Intermediates.noindex/Pods.construct/Debug-
iphonesimulator/FBReactNativeSpec.construct/Script-9666B301DB9D9BA74C1C0CDD9B765E7B.sh:
line 4: 23095 Segmentation fault: 11 bash -l -c 'SRCS_DIR=/Customers/teraichi/Work/Cucom-App-
v2/node_modules/react-native/scripts/../Libraries
CODEGEN_MODULES_OUTPUT_DIR=/Customers/teraichi/Work/Cucom-App-v2/node_modules/react-
native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec CODEGEN_MODULES_LIBRARY_NAME=
FBReactNativeSpec /Customers/teraichi/Work/Cucom-App-
v2/node_modules/react-native/scripts/generate-specs.sh' 2>&1
23096 Performed | tee "${SCRIPT_OUTPUT_FILE_0}"
Command PhaseScriptExecution failed with a nonzero exit code
Even when I construct from xCode or from yarn, I get the identical error.
# /Customers/teraichi/Library/Developer/Xcode/DerivedData/Cucom-basegvsyhmpmsgdvjavywleoezbw/Construct/Intermediates.noindex/Pods.construct/Debug-iphonesimulator/FBReactNativeSpec.construct/Script-9666B301DB9D9BA74C1C0CDD9B765E7B.sh
#!/bin/sh
set -o pipefail
bash -l -c 'SRCS_DIR=/Customers/teraichi/Work/Cucom-App-v2/node_modules/react-native/scripts/../Libraries CODEGEN_MODULES_OUTPUT_DIR=/Customers/teraichi/Work/Cucom-App-v2/node_modules/react-native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec CODEGEN_MODULES_LIBRARY_NAME=FBReactNativeSpec /Customers/teraichi/Work/Cucom-App-v2/node_modules/react-native/scripts/generate-specs.sh' 2>&1 | tee "${SCRIPT_OUTPUT_FILE_0}"
- Restart my pc
- OS model up
- replace xCode model
- node model up、model down
- Different options posted on the web
“Command PhaseScriptExecution failed with a nonzero exit code” when archiving