OGeek|极客世界-中国程序员成长平台

标题: ios - 如何在 Fabric Crashlytics 中禁用 LLVM 代码覆盖率 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 18:48
标题: ios - 如何在 Fabric Crashlytics 中禁用 LLVM 代码覆盖率

在最近向 Apple App Store 提交 iOS 应用时,我在处理构建过程中收到以下错误:

Invalid Bundle - Disallowed LLVM instrumentation. Do not submit apps with LLVM profiling instrumentation or coverage collection enabled. Turn off LLVM profiling or code coverage, rebuild your app and resubmit the app.

搜索堆栈溢出,解决方案是在所有依赖项中禁用 LLVM 代码覆盖。我已经为所有开源 Carthage 依赖项完成了此操作,但我仍然收到错误消息。我相信这是因为项目中的 Fabric 和 Crashlytics 依赖项启用了 LLVM 代码覆盖,但我无法禁用它,因为我只能访问 .framework 文件,而不是 .xcodeproj 文件。

如何更改 Fabric/Crashlytics 的 LLVM 代码覆盖率build设置?



Best Answer-推荐答案


在我们的例子中,Fabric 框架不是上述错误的原因。

Apple 建议在您的存档上运行以下脚本(Xcode 存档操作的输出):

nm -m -arch all /Products/Applications/.app/ | grep gcov

otool -l -arch all /Products/Applications/.app/ | grep __llvm_prf

但是您可以修改目标“框架”目录的路径而不是应用程序二进制文件,它会打印出启用了检测的框架。

更多信息请访问 Resolving App Rejections for GCC and LLVM Instrumentation .

关于ios - 如何在 Fabric Crashlytics 中禁用 LLVM 代码覆盖率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46446341/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4