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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:54:23  来源:igfitidea点击:

Xcode 8.3 nvalid bitcode signature

iosxcode

提问by Karim

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

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. enter image description hereThis 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& restart Xcode.
  • 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