WatchKit Extension Provisioning Profile?

Mario A Guzman picture Mario A Guzman · Apr 10, 2015 · Viewed 7.4k times · Source

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:

From Xcode v6.3

Anyone else having these issues? Any help would be very appreciated!

Answer

Alex D picture Alex D · Apr 10, 2015

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

Build Settings > Deployment > Strip Debug Symbols

(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'