react-native项目ios打包出现问题

一:出现boots报错:
1、下载boot-1-63-0.tar.g文件;
2、放至(访达/Macintosh HD/用户/admin/.rncache中);
3、获取值;
4、替换nodemodules/react-native/scripts/ios/install-third-party.sh的65行


fetch_and_unpack boost_1_63_0.tar.gz https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz c3f57e1d22a995e608983effbb752b54b6eab741

的后面那串数字。
参考解决方案

二:出现报错如下:
/bin/sh: /Users/admin/Library/Developer/Xcode/DerivedData/ZYQMmobile-hjowuvsasfjingbwbefawlufjwvw/Build/Intermediates.noindex/ArchiveIntermediates/ZYQMmobile/IntermediateBuildFilesPath/ZYQMmobile.build/Release-iphoneos/ZYQMmobile.build/Script-6B4480514F09C973398EA4DB.sh: (null): bad interpreter: No such file or directory

解决方法:

在项目/ios/ZYQMmobile.xcodeproj/project.pbxproj中1571行加shellPath = /bin/sh;

1、参考解决方案1
2、参考解决方案2

猜你喜欢

转载自blog.csdn.net/weixin_42998230/article/details/108125664