Watchkit Extension - 找不到匹配的配置文件 [英] Watchkit Extension - No matching provisioning profiles found

查看:104
本文介绍了Watchkit Extension - 找不到匹配的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个iPhone应用程序,其中还包含一个WatchKit扩展程序,我可以在模拟器中正常运行,但在尝试部署到iPhone时,我遇到WatchKit Extention目标的配置问题:

I have created an iPhone app that also includes a WatchKit extension, I can run this fine in the simulator but when trying to deploy to an iPhone I get a provisioning issue for the WatchKit Extention target:

构建设置(XXXX)中指定的配置文件的AppID为XXXX,与您的软件包标识符XXXX.watchkitextension不匹配.Xcode可以通过下载来解决此问题来自会员中心的新配置文件。

"The provisioning profile specified in your build settings ("XXXX") has an AppID of "XXXX" which does not match your bundle identifier "XXXX.watchkitextension". Xcode can resolve this issue by downloading a new provisioning profile from the Member Center."

Xcode使用后缀.watchkitextension和.watchkitapp自动创建了WatchKit目标,但这似乎在使用配置文件时会出现问题

Xcode automatically created the WatchKit targets with the suffix .watchkitextension and .watchkitapp but this seems to cause the issues when using a provisioning profile and deploying to an iPhone.

如果我删除了watchkit目标,它运行正常,但这显然不是解决方案。

If I remove the watchkit targets it runs fine, but this is obviously not a solution.

感谢您的帮助

推荐答案

您需要在开发人员中创建两个新的 AppID 具有正确捆绑的Portal Watchkit应用程序和Watchkit扩展的标识符。包标识符必须扩展主应用程序标识符,因此如果您的应用程序是 com.myapp ,它应该是 com.myapp.watchkitextension com.myapp.watchkitapp

You need to create two new AppIDs in the Developer Portal with the correct bundle identifier for your Watchkit app and Watchkit extension. The bundle identifier has to extend the main apps identifier, so if your app is com.myapp it should be com.myapp.watchkitextension and com.myapp.watchkitapp

您还需要创建相关的配置文件用于AppID,一个用于扩展,一个用于应用。

如果您在Watch应用中使用它们,请添加必需的附加组件(如Keychain)。

You also need to create the related Provisioning Profiles for the AppIDs, one for the extension and one for the app.
Add required add ons (like Keychain) if you are using them in your Watch app.

总而言之,你需要6个PP,3个用于开发,3个用于存档/存储。使用Xcode 6.3开发团队配置停止工作( for me

All in all you will need six PPs, 3 for development, 3 for archiving/store. With Xcode 6.3 team provisioning for development stopped working (for me)

下一步转到 Xcode>首选项>帐户> YOUR_ACCOUNT>查看详细信息... ,CTRL +单击其中一个配置文件并在Finder中打开。将所有配置文件移至废纸篓,然后刷新配置文件。

Next goto Xcode > Preferences > Accounts > YOUR_ACCOUNT > View Details ..., CTRL+Click one of the Profiles and open in Finder. Move all Profiles to Trash, then refresh the Profiles.

在您的目标中,确保为主App角色,Watchkit扩展目标和Watchkit设置了正确的Team应用程序目标,还要确保您具有分配给主App目标和Watchkit扩展目标的正确Provisioning配置文件(Watchkit app Provisioning Profile无法设置但将自动分配 Edit:使用Xcode 6.3时,必须设置它)。

In your targets make sure you have the correct Team set for your main App target, the Watchkit extension target and the Watchkit App target, also make sure you have the right Provisioning Profiles assigned to main App target and the Watchkit extension target (Watchkit app Provisioning Profile can not be set but will be assigned automatically With Xcode 6.3 it can has to be set).

确保一切都很好的干净构建文件夹:在Xcode hold命令中,执行产品>清理构建文件夹......

To be sure all is fine clean build folder: In Xcode hold command and do Product > Clean build folders ...

现在您已准备好存档。

这篇关于Watchkit Extension - 找不到匹配的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆