我正在尝试立即将我的iOS应用发送到App Store。它可以很好地编译并安装到我的测试设备上,而没有任何错误甚至警告。我有一个可以同时使用的Apple Watch App,但似乎给我带来了问题。创建应用的存档时,会收到以下5条警告:
[App Name] WatchKit Extension
warning: skipping copy phase strip, binary is code signed: /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** Watch App.app/_WatchKitStub/WK
warning: skipping copy phase strip, binary is code signed: /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** Watch App.app/*** Watch App
[App Name]
warning: skipping copy phase strip, binary is code signed: /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** Watch App.app/_WatchKitStub/WK
warning: skipping copy phase strip, binary is code signed: /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** Watch App.app/*** Watch App
warning: skipping copy phase strip, binary is code signed: /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** WatchKit Extension
然后继续执行此错误:
还有其他人遇到这些问题吗?任何帮助将不胜感激!
最佳答案
创建WatchKit应用程序时,我遇到了这两个问题。
(1)对于您的第一个问题:警告:跳过复印阶段。
我在这里找到解决方案:
Warning during archive App with iOS 8 Extension in Xcode 6
和这里:
Xcode 6 Archiving and get a warning "Skipping copy phase strip ,binary is code signed" when add "share extension" to target
具体来说,这是我用来解决问题的步骤:
在“目标”部分下选择您的主要目标。
(2)对于您的第二个问题:无法找到或生成匹配的签名资产
解决方案在这里:
No matching provisioning profiles found for WatchKit extension when submitting to App Store
和这里:
Submit WatchKit Provisioning Error
在添加WatchKit扩展之前,我必须重新生成用于提交整个应用程序的“分发”配置文件。具体来说,这些步骤解决了我的问题:
我登录到developer.apple.com,选择“证书,标识符和配置文件”。
关于ios - WatchKit扩展设置配置文件?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29553794/