React Native iOS 未构建
React Native iOS not building
尝试在 Xcode 中构建我的 React 本机应用程序时,我不断收到以下错误。我对 React Native 完全陌生,这个应用程序是由其他人开发的,但是,他们无法为我处理构建。是否有人 运行 解决了这个问题并可以提供帮助?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture armv7
我目前正在使用:
- 本机反应:0.51.0
- Xcode: 版本 9.4.1
- 目标平台 8.0
我试过关闭位码,但这会导致:
/Xcode/DerivedData/nativeApp-eenfjavhlxnfkfermonlqxkgbtbb/Build/Products/Release-iphoneos/libRNVectorIcons.a'
现在,我的问题。我是沿着 BITCODE = OFF 的道路走下去并尝试解决我 运行 遇到的每个问题,还是有人有 XCTest 问题的解决方案。
谢谢!
更新:我能够解决问题。我不知道具体怎么做,但我删除了 cocoapods 和 node_modules。 运行 NPM install、pod install 和 react-native link 都不见了。
编辑:我还检查了 cocoapods 的构建配置文件并删除了 -framwork XCTest。
就像我说的,我不知道是什么真正解决了这个问题,但也许有人觉得它有用。
尝试在 Xcode 中构建我的 React 本机应用程序时,我不断收到以下错误。我对 React Native 完全陌生,这个应用程序是由其他人开发的,但是,他们无法为我处理构建。是否有人 运行 解决了这个问题并可以提供帮助?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture armv7
我目前正在使用:
- 本机反应:0.51.0
- Xcode: 版本 9.4.1
- 目标平台 8.0
我试过关闭位码,但这会导致:
/Xcode/DerivedData/nativeApp-eenfjavhlxnfkfermonlqxkgbtbb/Build/Products/Release-iphoneos/libRNVectorIcons.a'
现在,我的问题。我是沿着 BITCODE = OFF 的道路走下去并尝试解决我 运行 遇到的每个问题,还是有人有 XCTest 问题的解决方案。
谢谢!
更新:我能够解决问题。我不知道具体怎么做,但我删除了 cocoapods 和 node_modules。 运行 NPM install、pod install 和 react-native link 都不见了。
编辑:我还检查了 cocoapods 的构建配置文件并删除了 -framwork XCTest。
就像我说的,我不知道是什么真正解决了这个问题,但也许有人觉得它有用。