Provisioning profile for Today Widget extension

IosXcodeProvisioning ProfileIos App-Extension

Ios Problem Overview


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

Ios Solutions


Solution 1 - Ios

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.

Solution 2 - Ios

My problem was because of i added "arm" in the Excluded architecture section. I revert it and the problem goes away. It is weird.

enter image description here

Solution 3 - Ios

Try to create a new App Id for your App extension in Certificates, Identifiers & Profiles (https://developer.apple.com/account). Then create a Provisioing profile for the newly created App id.

If the bundle id for your App is com.apple.appname you create an app extensions with the bundle id com.apple.appname.appextensionname. The same id is then used in Xcode for the widget.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3746428View Question on Stackoverflow
Solution 1 - IosMarkus RautopuroView Answer on Stackoverflow
Solution 2 - IosDave WongView Answer on Stackoverflow
Solution 3 - IosDaniel NordView Answer on Stackoverflow