WatchKit Extension Provisioning Profile?

人走茶凉 提交于 2019-12-07 15:53:25
Alex D

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:

Xcode 6 Archiving and get a warning "Skipping copy phase strip ,binary is code signed" when add "share extension" to target

Specifically, here are the steps I used to fix the problem:

  1. Start Xcode and open your project.

  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.

  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:

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".

  1. On the Certs IDs & Profiles website > Provisioning Profiles page, click the App Store profile.
  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),

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.

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,

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

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!