运行react-native run-ios 报错,类似这样的错误
`
clang: error: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a'
clang: error: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTBlob.a'
clang: error
: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTAnimation.a'
clang: error
: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a'
clang: error
: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a'
clang: error
:
no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTImage.a'
clang: error:
no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTLinking.a'
clang: error
: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTNetwork.a'
clang:
error: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTSettings.a'
clang: error: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTText.a'
clang: error
: no such file or directory: '/Users/me/projects/myProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTVibration.a'
`
打开Xcode ,选中项目target,在 Build Settings 中找打 Build Active Architecture Only 修改为yes
image.png
网友评论