我正在尝试将我的 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.
我应该怎么做才能提交我的应用程序?
最佳答案
是的,您的 tvOS 目标中的每个静态库和动态框架都需要启用位码。您可以通过运行 otool 来验证您的静态库是否启用了位码,如下所示。如果它启用了位码,你应该在你的输出中得到一堆 __LLVM segnames。如果您没有得到任何结果,那么很可能该库未启用位码,并且是有问题的组件。
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/