如何在Xcode项目中为特定的库或SDK启用或禁用位码 [英] How to enable or disable bitcode for specific library or SDK in Xcode project

查看:87
本文介绍了如何在Xcode项目中为特定的库或SDK启用或禁用位码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有许多外部库和SDK.并且其中一些不支持bitcode.因此,我必须禁用bitcode.但是某些库,例如 ParseCrashReporting ,确实需要它来表示崩溃报告.

I have many external libraries and SDKs in my project. And some of them does not support bitcode. So I have to disable bitcode. But some libraries like ParseCrashReporting, does require it to symbolicate the crash reports.

我想为特定的库禁用并启用bitcode.我该如何实现?可能吗?

I want to disable and enable bitcode for specific libraries. How I can achieve that? Is it even possible?

谢谢

推荐答案

您不能.库本身必须在支持位码的情况下构建.但是,如果您必须立即交付应用程序,而又没有时间等待他们更新其库,则可以禁用整个项目的位码支持.更新具有位码支持的库后,只需重新启用它并在AppStore中更新您的应用即可.

You can't. The library itself has to be built with support of bitcode. However, in case you have to ship you app right now and you don't have time for waiting while they update their library - you can disable bitcode support for your whole project. Once you have updated library with bitcode support - just enable it back on and update your app in the AppStore.

要启用/禁用位码支持,请转到项目">构建设置">在搜索字段中搜索位码">设置为是/否".

To enable/disable bitcode support go to Project > Build Settings > search for 'bitcode' in the searchfield > set to YES/NO.

这篇关于如何在Xcode项目中为特定的库或SDK启用或禁用位码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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