ios - TvOS - 无效的 bundle

标签 ios app-store tvos apple-tv

我正在尝试将我的 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/

相关文章:

ios - 对核心数据 : "Select * WHERE "attribute"== "Some string" "执行此操作

ios - 使用委托(delegate)从 xib 向 VC 传递数据

iphone - 为什么所有出色的应用程序都不会检测越狱以限制其应用程序中的功能?

objective-c - 链接到开发者的应用程序

ios - 在 UITextView 中编辑中文文本

ios - 如何禁用 `MGLSymbolStyleLayer` 的集群化功能?

ios - 如何更改应用商店中的开发者网站

iphone - 我如何知道用户是否在应用商店中对应用进行了评分

reactjs - React Native 焦点在 tvOS 中没有改变

swift - 使用 tvOS 从本地文件播放视频