简体   繁体   English

WatchKit扩展设置配置文件?

[英]WatchKit Extension Provisioning Profile?

I'm trying to send my iOS app to the App Store right now. 我正在尝试立即将我的iOS应用发送到App Store。 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. 我有一个可以同时使用的Apple Watch App,但似乎给我带来了问题。 When I create the Archive of the app, I get the following 5 warnings: 创建应用的存档时,会收到以下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

And then it's proceeded with this error: 然后继续执行此错误:

从Xcode v6.3

Anyone else having these issues? 还有其他人遇到这些问题吗? Any help would be very appreciated! 任何帮助将不胜感激!

I had both of these problems when I created my WatchKit app. 创建WatchKit应用程序时,我遇到了这两个问题。

(1) For your first problem: warning: skipping copy phase strip. (1)对于您的第一个问题:警告:跳过复印阶段。

I found the solutions here: 我在这里找到解决方案:

Warning during archive App with iOS 8 Extension in Xcode 6 Xcode 6中使用iOS 8 Extension的存档应用程序期间发出警告

and here: 和这里:

Xcode 6 Archiving and get a warning "Skipping copy phase strip ,binary is code signed" when add "share extension" to target Xcode 6归档并在目标上添加“共享扩展名”时收到警告“正在跳过复制阶段条,二进制代码已签名”

Specifically, here are the steps I used to fix the problem: 具体来说,这是我用来解决问题的步骤:

  1. Start Xcode and open your project. 启动Xcode并打开您的项目。

  2. Select the blue project icon in the upper-left-hand corner. 选择左上角的蓝色项目图标。

  3. In second column that contains sections: PROJECT and TARGETS, select your main target under the TARGETS section. 在包含部分的第二列:PROJECT和TARGETS中,在TARGETS部分下选择主要目标。

  4. Select the “Build Settings” tab. 选择“构建设置”选项卡。

  5. Scroll down to the “Deployment” section. 向下滚动到“部署”部分。

  6. Find and expand the section called “Strip Debug Symbols During Copy” 查找并展开“复制过程中的条调试符号”部分

  7. Find the row called "Release". 找到名为“发布”的行。

  8. Change the value from "Yes" to "No". 将值从“是”更改为“否”。

构建设置>部署>剥离调试符号

(2) For your second problem: Failed to locate or generate matching signing assets The solutions are here: (2)对于您的第二个问题:无法找到或生成匹配的签名资产解决方案在这里:

No matching provisioning profiles found for WatchKit extension when submitting to App Store 提交到App Store时找不到与WatchKit扩展匹配的配置文件

and here: 和这里:

Submit WatchKit Provisioning Error 提交WatchKit置备错误

I had to regenerate the "Distribution" Provisioning Profile that I was using to submit my entire app, before I included the WatchKit extension. 在添加WatchKit扩展之前,我必须重新生成用于提交整个应用程序的“分发”配置文件。 Specifically, these steps fixed my problem: 具体来说,这些步骤解决了我的问题:

I logged onto developer.apple.com, selected "Certificates, Identifiers & Profiles". 我登录到developer.apple.com,选择“证书,标识符和配置文件”。

  1. On the Certs IDs & Profiles website > Provisioning Profiles page, click the App Store profile. 在“证书ID和配置文件”网站>“供应配置文件”页面上,单击“ App Store配置文件”。
  2. Click 'Edit' 点击“编辑”
  3. Click 'Generate' 点击“生成”

I have a solution that worked (for me) 我有一个可行的解决方案(对我来说)

First: Just make sure that you enabled all services that you used on your app on your (Watch Kit App) and (Watch Kit Extension), 首先:只需确保在(Watch Kit App)和(Watch Kit Extension)上启用了在应用程序上使用的所有服务,

For example if you used iCloud on your native app, you should enable iCloud on your (Watch Kit App) and (Watch Kit Extension) even if you didn't use iCloud on your watch app. 例如,如果您在本机应用程序上使用了iCloud,则即使未在手表应用程序上使用iCloud,也应在(Watch Kit App)和(Watch Kit Extension)上启用iCloud。

Same goes for app groups.. 应用程序组也是如此。

Second: Make sure the bundle identifier on (Watch Kit App) and (Watch Kit Extension) has to extend the native app, 第二:确保(Watch Kit App)和(Watch Kit Extension)上的捆绑包标识符必须扩展本机应用程序,

For example if the app com.company.myapp the (Watch Kit App) identifier should be: com.company.myapp.watchkitapp and on (Watch Kit Extension) should be: com.company.myapp.watchkitextension 例如,如果应用程序com.company.myapp (监视工具包应用程序)的标识符应为: com.company.myapp.watchkitapp ,而(监视工具扩展名)的标识符应为: com.company.myapp.watchkitextension

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM