Bitcode编译中捆绑的框架问题 [英] Bundled framework issues with Bitcode compilation

查看:96
本文介绍了Bitcode编译中捆绑的框架问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个watchOS应用,其中包含一个框架。突然使用Xcode 7.3,发布版本就出现了问题。

I have a watchOS app which includes a framework. Suddenly with Xcode 7.3, I have been having issues with Release builds.

我必须遵循此处,以解决我的Release版本问题。我的应用程序现在可以在所有构建配置上编译。当我尝试从Xcode Organizer导出应用程序时,遇到其他错误。

I had to follow the manual instructions found here to solve my Release build issues. My app compiles on all build configurations now. When I try to export my app from the Xcode Organizer, I'm faced with other errors.

从非常冗长的控制台输出中,我发现了流程:

From the very verbose console output, I found the last error message in the process:


description =未能为Coventry-Watch编译位码:\n调试:SDK路径:/Applications/Xcode.app /Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS2.2.sdk\n调试:PATH:['/ Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin' ,'/Applications/Xcode.app/Contents/Developer/usr/bin']\n调试:使用:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo\n MachoInfo:cd / \n \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo\ \ -info\ \ / var / folders / bk / lqjcpcfx0g1g2_k4bp49ppq00000gr / T / ipatool20160331-56415-1e0ofzg / thinned / armv7k / Payload / My App.app/Watch/My Watch App.app/PlugIns/My Watch App Extension.appex / Fr ameworks / Coventry-Watch.framework / Coventry-Watch\ \n
...

description = "failed to compile bitcode for Coventry-Watch:\n Debug: SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS2.2.sdk\n Debug: PATH: ['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin', '/Applications/Xcode.app/Contents/Developer/usr/bin']\n Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo\n MachoInfo: cd /\n \"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo\" \"-info\" \"/var/folders/bk/lqjcpcfx0g1g2_k4bp49ppq00000gr/T/ipatool20160331-56415-1e0ofzg/thinned/armv7k/Payload/My App.app/Watch/My Watch App.app/PlugIns/My Watch App Extension.appex/Frameworks/Coventry-Watch.framework/Coventry-Watch\" \n ...

我可以找出Xcode版本之间的更改突然导致了问题。我想我理解该错误,但是我不知道可能需要解决什么才能解决它。

I can't work out what has changed in between Xcode versions to suddenly cause an issue. I think I understand the error, but I don't know what might need fixing to resolve it.

推荐答案

从链接中提供,据我了解,您的应用程序所包含的框架是由Aggregate目标构建的,该目标具有自定义的运行脚本来为其构建胖(模拟器+设备)版本。

From the link you provide, I understand that the framework included by your app is "built by an Aggregate target, which has a custom Run Script to build a "fat" (simulator+device) version of it".

如果是这种情况,则您的位码丢失问题可能与在此问题中
的解决方法是在聚合目标脚本的开头添加以下行:

取消设置工具

If this is the case, your bitcode-missing issue may come from the same problem described in this question. And the workaround for it is to add the following line at the beginning of your Aggregate target script:
unset TOOLCHAINS

这篇关于Bitcode编译中捆绑的框架问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆