Mac M1 iOS Archive 遇到的问题

问题一

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:203:21)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/Users/luyangjie/CYA/Cake/waffle_cake/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (events.js:400:28)
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:209:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}
+ [[ false != true ]]
+ [[ ! -f /Users/luyangjie/Library/Developer/Xcode/DerivedData/GreatCakeExpo-ftamofdyqnakqthcaqhuqpcyknor/Build/Intermediates.noindex/ArchiveIntermediates/GreatCakeExpo/BuildProductsPath/Release-iphoneos/蛋糕英语.app/main.jsbundle ]]
+ echo 'error: File /Users/luyangjie/Library/Developer/Xcode/DerivedData/GreatCakeExpo-ftamofdyqnakqthcaqhuqpcyknor/Build/Intermediates.noindex/ArchiveIntermediates/GreatCakeExpo/BuildProductsPath/Release-iphoneos/蛋糕英语.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/luyangjie/Library/Developer/Xcode/DerivedData/GreatCakeExpo-ftamofdyqnakqthcaqhuqpcyknor/Build/Intermediates.noindex/ArchiveIntermediates/GreatCakeExpo/BuildProductsPath/Release-iphoneos/蛋糕英语.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2

解决方案:
Xcode Build Phases -> Bundle React Native code and images加上

export PATH=/opt/homebrew/bin:$PATH

问题二

 Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

解决方案:
删掉 EXCLUDED_ARCHS = arm64 ;

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容