问题描述
我现在正在尝试将我的 iOS 应用发送到 App Store.它编译良好并安装到我的测试设备上,没有任何错误甚至警告.我有一个 Apple Watch 应用程序将与之配套使用,但它似乎给我带来了问题.当我创建应用程序的存档时,我收到以下 5 条警告:
[App Name] WatchKit 扩展警告:跳过复制阶段条,二进制是代码签名的:/Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** Watch App.app/_WatchKitStub/WK警告:跳过复制阶段条,二进制是代码签名的:/Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** Watch App.app/*** 手表应用[应用名称]警告:跳过复制阶段条,二进制是代码签名的:/Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** 手表 App.app/_WatchKitStub/WK警告:跳过复制阶段条,二进制是代码签名的:/Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** 手表应用.app/*** 手表应用警告:跳过复制阶段条,二进制是代码签名的:/Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates/ArchiveIntermediates/***/IntermediateBuildFilesPath/UninstalledProducts/*** WatchKit Extension.appex/*** WatchKit 扩展
然后继续这个错误:
还有其他人遇到这些问题吗?任何帮助将不胜感激!
我在创建 WatchKit 应用程序时遇到了这两个问题.
(1) 对于你的第一个问题:警告:跳过复制阶段.
我在这里找到了解决方案:
这里:
在包含 WatchKit 扩展之前,我必须重新生成我用来提交整个应用程序的分发"配置文件.具体来说,这些步骤解决了我的问题:
我登录到 developer.apple.com,选择了证书、标识符和配置文件".
- 关于证书 ID &配置文件网站 > 配置配置文件页面,点击 App Store 配置文件.
- 点击编辑"
- 点击生成"
I'm trying to send my iOS app to the App Store right now. It compiles fine and installs onto my test device without a single error or even warning. I have an Apple Watch App that is going to go along with it but it seems to be giving me problems. When I create the Archive of the app, I get the following 5 warnings:
[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
And then it's proceeded with this error:
Anyone else having these issues? Any help would be very appreciated!
I had both of these problems when I created my WatchKit app.
(1) For your first problem: warning: skipping copy phase strip.
I found the solutions here:
Warning during archive App with iOS 8 Extension in Xcode 6
and here:
Specifically, here are the steps I used to fix the problem:
Start Xcode and open your project.
Select the blue project icon in the upper-left-hand corner.
In second column that contains sections: PROJECT and TARGETS,select your main target under the TARGETS section.
Select the "Build Settings" tab.
Scroll down to the "Deployment" section.
Find and expand the section called "Strip Debug Symbols During Copy"
Find the row called "Release".
Change the value from "Yes" to "No".
(2) For your second problem: Failed to locate or generate matching signing assetsThe solutions are here:
No matching provisioning profiles found for WatchKit extension when submitting to App Store
and here:
Submit WatchKit Provisioning Error
I had to regenerate the "Distribution" Provisioning Profile that I was using to submit my entire app, before I included the WatchKit extension. Specifically, these steps fixed my problem:
I logged onto developer.apple.com, selected "Certificates, Identifiers & Profiles".
- On the Certs IDs & Profiles website > Provisioning Profiles page, click the App Store profile.
- Click 'Edit'
- Click 'Generate'
这篇关于WatchKit 扩展配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!