react0.45.0版本问题 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):

在尝试安装react0.45.0版本时遇到NSPOSIXErrorDomain错误,导致应用无法安装。问题源于0.45版本的重大变更,不兼容当前初始化方式。解决方法是在创建项目时,通过`react-native init mydemo --version 0.44.3`指定回0.44.3版本,等待官方后续修复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The following build commands failed:

PhaseScriptExecution Install\ Third\ Party /Users/*****/sungithub/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh

(1 failure)


Installing build/Build/Products/Debug-iphonesimulator/sungithub.app

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):

Failed to install the requested application

An application bundle was not found at the provided path.

Provide a valid path to the desired application bundle.

Print: Entry, ":CFBundleIdentifier", Does Not Exist


Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/sungithub.app/Info.plist

Print: Entry, ":CFBundleIdentifier", Does Not Exist


如果是因为下载了最新的react-native-cli,然后init的项目

在package.json里面,看到自己的react-native的版本是0.45.*以后的,出现这个错误

这是因为是0.45官方有重大改动,无法使用react-native init项目来启动,

直接react-native init mydemo --version 0.44.3指定之前的版本就可以了


当然相信后面会修复,也就没有这个问题了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值