我们有一个客户端使用我们的源代码.该项目包括Apple Watch,但他们不想将其构建到他们的应用程序中.他们删除了Embed App Extensions.他们能够提交到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
解决方法
我还没有看到可以添加到info.plist的设置.
通过在Xcode中使用正确的Scheme,只构建iPhone应用程序而不是手表应用程序.方案是如何控制在Xcode中构建的目标.
添加监视工具包目标后,会创建一个用于构建监视应用程序和移动应用程序的方案.
导出app for release时,只使用那里的移动应用程序方案,但不包括watch os目标.
来自apple的Scheme编辑器doc:
https://developer.apple.com/library/mac/recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html