ios - 如何不交付 iOS 应用程序的 AppleWatch 部分

标签 ios ios8 watchkit apple-watch ios8.2

我们有一个客户使用我们的源代码。该项目包括 Apple Watch,但他们还不想将其构建到他们的应用程序中。他们删除了嵌入应用程序扩展。他们能够提交到 App Store,但随后收到一封电子邮件:

We have discovered one or more issues with your recent delivery for "XXX". To process your delivery, the following issues must be corrected: Invalid WatchKit Support - The bundle contains an invalid implementation of WatchKit. The app may have been built or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information. Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team

要对不包含 Apple Watch 组件的项目做最少的修改,以便他们以后想添加它时可以使用它?

最佳答案

我还没有看到可以添加到 info.plist 的设置。

通过在 Xcode 中使用正确的 Scheme,只构建 iPhone 应用程序而不构建 watch 应用程序。方案是您如何控制在 Xcode 中构建哪些目标。

添加 watch 套件目标后,创建了一个用于构建 watch 应用和移动应用的方案。

导出应用程序以供发布时,仅使用现有的移动应用程序方案,不包括 watch os 目标。

来自苹果的方案编辑器文档: https://developer.apple.com/library/mac/recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html

关于ios - 如何不交付 iOS 应用程序的 AppleWatch 部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31062074/

相关文章:

swift - 使用 Storyboard检测 WatchKit 上所有四个方向的滑动

ios - UITableViewCell 上的 UITextField 停止响应触摸 - 可能是由于滚动到屏幕外造成的

ios - 添加到 UITableView 时在 Storyboard 中使用 UITableViewCells 的正确方法是什么

javascript - Safari 移动浏览器没有 <select> 的 selectedOptions

ios - 如何将自定义条目添加到 iOS watchKit 扩展 info.plist 中?

ios - SwiftUI在watchOS上通过NavigationLink列出性能下降

ios - SwiftUI:如果在 ForEach 中使用,NavigationLink 会立即弹出

ios - 为什么 UIPageViewController 的 transition 会改变字体?

ios - 如何在 iOS8 中使用 iOS touch ID 映射第三方应用凭证?

ios - handleActionWithIdentifier 不起作用