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

标题: ios - TvOS - 无效的 bundle [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:14
标题: ios - TvOS - 无效的 bundle

我正在尝试将我的 tvOS 应用程序提交到商店,但我收到以下错误消息:

Invalid Bundle - The app cannot be processed because options not allowed to be embedded in bitcode are detected in the submission. It is likely that you are not building the app with the toolchain provided in Xcode. Rebuild your entire app with the latest GM Xcode and submit the app again.

根据Apple documentation tvOS 应用需要位码:

For iOS apps, bitcode is the default, but optional. For watchOS and tvOS apps, bitcode is required. If you provide bitcode, all apps and frameworks in the app bundle (all targets in the project) need to include bitcode.

我应该怎么做才能提交我的应用程序?



Best Answer-推荐答案


是的,您的 tvOS 目标中的每个静态库和动态框架都需要启用位码。您可以通过运行 otool 来验证您的静态库是否启用了位码,如下所示。如果它启用了位码,你应该在你的输出中得到一堆 __LLVM 段名。如果您没有得到任何结果,那么很可能该库未启用位码,并且是有问题的组件。

dbox:lib oz$ otool -l libmDialogtvOSSmartStreamSDK.a | grep __LLVM

这是这个特定静态库启用位码时的输出:

segname __LLVM
segname __LLVM
segname __LLVM

关于ios - TvOS - 无效的 bundle ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47177572/






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