Provisioning profile for Today Widget extension

user3746428 picture user3746428 · Sep 14, 2014 · Viewed 22.9k times · Source

I am trying to archieve my app for submission however I am running into issues with code signing.

Basically I have a Today Widget extension for my app. I am unsure about what I should be setting the provisioning profile as. I assumed that I would just use the same profile that I have used for my app, however I get this error:

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

I can of course click 'Fix Issue', but does this actually solve the problem? It just changes my distribution settings to 'iOS Developer' and providing profile to 'Automatic'.

Answer

Markus Rautopuro picture Markus Rautopuro · Sep 22, 2014

I was struggling with the same problem, and resolved it this way:

  • You need one App ID configured to the provisioning portal (I assume you have your com.apple.yourappname there)
  • You need to then configure the second App ID for the Today Widget (which should be com.apple.yourappname.something, where something is the name for your widget, like Today)

Then you need to create two App Store Distribution provisioning profiles:

  • One for the main App
  • Second one for the widget

Then assign the correct provisioning profiles for each target to the project settings and set to build for Distribution.