react-native 0.70.0 版本 iOS 搭建环境遇到问题集

当前环境
macOS 14.7
xcode 16
ruby 3.3.5
node 18.20.4
cocoapods 1.15.2

问题一: FlipperPlatformWebSocket

企业微信截图_a85218fd-08cc-410d-ad19-03636a1479d2.png
企业微信截图_57cb7217-5783-4412-855c-19df32067870.png

修改方式

 :flipper_configuration => FlipperConfiguration.disabled

...

问题 二: Command PhaseScriptExecution failed with a nonzero exit code

截屏2024-10-10 16.10.15.png
/Users/xushuangle/Documents/RNTest/MyDome700/ios/Pods/../../node_modules/react-native/React/FBReactNativeSpec/../../scripts/xcode/with-environment.sh: line 35: .xcode.env: command not found
/Users/xushuangle/Documents/RNTest/MyDome700/ios/Pods/../../node_modules/react-native/React/FBReactNativeSpec/../../scripts/xcode/with-environment.sh: line 35: node: command not found
[Warning] You need to configure your node path in the  environment.  You can set it up quickly by running:  echo 'export NODE_BINARY=' > .xcode.env  in the ios folder. This is needed by React Native to work correctly.  We fallback to the DEPRECATED behavior of finding . This will be REMOVED in a future version.  You can read more about this here: https://reactnative.dev/docs/environment-setup#optional-configuring-your-environment

[Error] Could not find node. It looks like that the .xcode.env or .xcode.env.local 
Command PhaseScriptExecution failed with a nonzero exit code

修改方式

echo export NODE_BINARY=$(command -v node) > .xcode.env.local
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容