我创建了一个React-Native应用程序,一切正常,直到我在Mac上重新安装Nodej。
NodeJS版本:8.9.3
纱线版本:1.3.2
Fastlane版本:2.70.2
现在我收到了这些错误:
...
▸ Linking myapp
⚠️ ld: object file (/Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/libRNSound.a(RNSound.o)) was built for newer iOS version (9.0) than being linked (8.0)
▸ Linking myapp
⚠️ ld: object file (/Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/libRNSound.a(RNSound.o)) was built for newer iOS version (9.0) than being linked (8.0)
...
❌ error: No such file or directory (os error 2)
❌ error: File /Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/myapp.app/main.jsbundle does not exist. This must be a bug with
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
[23:27:08]: Exit status: 65
+---------------+-------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.70.2 |
| export_method | ad-hoc |
| sdk | iPhoneOS11.2.sdk |
+---------------+-------------------------+
[23:27:08]: ▸ + echo 'error: File /Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/myapp.app/main.jsbundle does not exist. This must be a bug with'
[23:27:08]: ▸ error: File /Users/kay/Library/Developer/Xcode/DerivedData/myapp-fzwplvzpqltyirhkflrgkwgrvkqi/Build/Intermediates.noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/myapp.app/main.jsbundle does not exist. This must be a bug with
[23:27:08]: ▸ + echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
[23:27:08]: ▸ React Native, please report it here: https://github.com/facebook/react-native/issues
[23:27:08]: ▸ + exit 2