问题一
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 ;