在react-native 中用脚本输出iOS安装包出现了如下错误:
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/junfeiwang/Library/Developer/Xcode/DerivedData/oaPhone-ggfewlljxegaadajoapavfnxcsrj/Build/Intermediates.noindex/ArchiveIntermediates/oaPhone/IntermediateBuildFilesPath/oaPhone.build/Release-iphoneos/oaPhone.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
erro:Build failed!!
尝试了一下手动通过Xcode 输出安装包是没有任何问题,证明这应该是是react-native
相关的问题。
经过一系列资料的查找,从react-native
github 中找到了线索:
发现发起者最后自己关闭了问题,描述为:
when i update my xcode and node ,everything is ok.
xcode 10.2.1
node 10.15.1
突然发现自己把react-native的版本从0.59.4
升级到0.59.10
,而node
版本有可能无法支持了,查看了一下node -v
发现是10.13.0
,
果断升级node
,然后就发现脚本可以正常运行了,完美!!!
网友评论