Xcode 8.3 无效的位码签名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43361527/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8.3 nvalid bitcode signature
提问by Karim
My project use P2PCamera SDK,but not use Cocoapod,then need depend more lib
我的项目使用P2PCamera SDK,但没有使用Cocoapod,那么需要依赖更多的lib
error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can build and run success in Xcode8.2,but is error when i use Xcode8.3
我可以在 Xcode8.2 中构建和运行成功,但是当我使用 Xcode8.3 时出错
回答by Krunal
I have this issue when I tried to test with iOS device.The debug configuration with Build Active Architecture Only is set to NO. After I set to YES, I can test with my iPhone. This will resolve the issue surely.
当我尝试使用 iOS 设备进行测试时,我遇到了这个问题。使用 Build Active Architecture Only 的调试配置设置为 NO。在我设置为 YES 后,我可以用我的 iPhone 进行测试。这肯定会解决问题。
回答by Hyman
Maybe the issue because of a third party SDK integrated into your project using Cocoapods. do the following:
问题可能是因为使用 Cocoapods 将第三方 SDK 集成到您的项目中。请执行下列操作:
- Clear
derived data
& restartXcode
. - Clean & Build.?
- 清除
derived data
并重新启动Xcode
。 - 清洁和建造。?
Or if you don't mind disabling bitcode: Go to build settings search bitcode and change "Enable Bitcode
" to "No
".
或者,如果您不介意禁用位代码:转到构建设置搜索位代码并将“ Enable Bitcode
”更改为“ No
”。
回答by Satheesh
The problem might be with lAVCtrl_armv7third party library, you can confirm this by editing valid Architecture to arm64and re-compile.
问题可能出在lAVCtrl_armv7第三方库上,您可以通过将有效架构编辑为arm64并重新编译来确认这一点。
回答by jakob.j
For me it helped to "update project to recommended settings" & clean: https://stackoverflow.com/a/47336130/1884907
对我来说,它有助于“将项目更新为推荐设置”和清理:https: //stackoverflow.com/a/47336130/1884907