ios - 将支持 Apple Watch 的 App 推送到 iTunes Connect 时出现很多错误

标签 ios swift apple-watch iphone-developer-program

我已经为我的应用构建了 Apple Watch 支持。但是我得到了以下错误:

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx/_WatchKitStub/WK' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html%23//apple_ref/doc/uid/10000123i-CH101-SW1 for information on the iOS app bundle structure."
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
ERROR ITMS-90455: "The binary you uploaded was invalid."
ERROR ITMS-90499: "Missing Apple Watch Extension. The application 'xxxxx' is missing its corresponding Apple Watch extension."
ERROR ITMS-90508: "Invalid Info.plist value. The value for the key 'DTPlatformName' in bundle xxxx is invalid."

我试图解决这个问题,但是在一个新项目中我遇到了同样的错误。怎么回事?

最佳答案

我昨天刚遇到同样的问题,原因和解决方法很简单:

我忘记将 Watch App 和 Extension 的配置文件更改为分发配置文件。更改后错误消失了。

关于ios - 将支持 Apple Watch 的 App 推送到 iTunes Connect 时出现很多错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31204490/

相关文章:

ios - 如何在我的Xcode项目中集成Razorpay付款网关?

ios - Swift 约束自动调整标签宽度

ios - Apple Watch - 更新背景概览

SwiftUI - 通过 ContextMenu 显示模态

ios - HomeKit 崩溃原因 : '-[__NSDate length]: but Bool sent

ios - 快速将 GPS 元数据字典添加到使用 AVFoundation 拍摄的图像

iphone - 许多 viewController 中的 iAd

ios - 聚合 CMPedometerData(iPhone + Watch 总计数)

iphone - TableViewCells 和字典数组

android - 为 React Native 创建自定义 SDK