Bundled framework issues with Bitcode compilation

不想你离开。 提交于 2019-12-11 09:54:54

问题


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

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 = "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 ...

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.


回答1:


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



来源:https://stackoverflow.com/questions/36324228/bundled-framework-issues-with-bitcode-compilation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!