Bug 30320 - Can't sign and distribute an app with extensions - ERROR ITMS-90161: "Invalid Provisioning Profile."
Summary: Can't sign and distribute an app with extensions - ERROR ITMS-90161: "Invalid...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: 5.10 (C6)
Assignee: Jeffrey Stedfast
: 31942 ()
Depends on:
Blocks: 30410
  Show dependency tree
Reported: 2015-05-21 15:03 UTC by Chris Hardy [MSFT]
Modified: 2015-10-09 01:20 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Hardy [MSFT] 2015-05-21 15:03:03 UTC
Using the new "Sign and Distribute" method of creating an IPA to submit to the app store with the Application Loader, it does not allow me the option to pick what provisioning profiles to use for any extensions (TodayExtension, WatchKitExtension) or the WatchKit App itself (https://www.dropbox.com/s/3ye0irm95hikfh8/Screenshot%202015-05-21%2015.00.22.png?dl=0), this then leads to the following error on the app store when submitting: "ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in bundle com.chrisntr.whichboob.todayextension [Payload/BoobClue.app/PlugIns/com.chrisntr.whichboob.todayextension.appex] is invalid. [Missing code-signing certificate.]" - https://www.dropbox.com/s/1o4dojjpoj4kzv5/Screenshot%202015-05-21%2014.54.19.png?dl=0

A workaround to fix this issue is to use the archive created, remove the iTunesMetadata.plist file from the created archive and then submit the archive through Xcode which picks up/generates distribution provisioning profiles for each extension appropriately, as shown in the following image: https://www.dropbox.com/s/bx23sjyfimnonci/Screenshot%202015-05-21%2014.57.46.png?dl=0
Comment 8 Jeffrey Stedfast 2015-07-14 11:16:47 UTC
This is implemented now
Comment 9 Jeffrey Stedfast 2015-07-14 15:35:04 UTC
*** Bug 31942 has been marked as a duplicate of this bug. ***
Comment 10 Saurabh 2015-10-09 01:20:05 UTC
I have checked this Issue. Now I am getting option to select provisioning profile for extension, watchapp and main project. This is the screencast for the same: http://www.screencast.com/t/yCIcpJjVLwMw

=== Xamarin Studio ===

Version 5.10 (build 813)
Installation UUID: 45555ffd-f3f0-4f29-9543-e369d711ab7d
	Mono 4.2.1 (explicit/cc1cf60)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010062

=== Xamarin.Profiler ===

Location: /Applications/XamarinProfiler.Mac.app/Contents/MacOS/XamarinProfiler.Mac

=== Apple Developer Tools ===

Xcode 7.0 (8227)
Build 7A220

=== Xamarin.iOS ===

Version: (Starter Edition)
Hash: 7bcf0da
Branch: master
Build date: 2015-10-05 17:54:02-0400

=== Xamarin.Android ===

Version: (Starter Edition)
Android SDK: /Users/xamarin77/Desktop/android-sdk-macosx_êèéæâàçéè€ÿëïœ_a
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23 rc1

Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Starter Edition)

=== Build Information ===

Release ID: 510000813
Git revision: 388e41428fb8f2910833c87fec0e7edaccd4f436
Build date: 2015-10-05 12:26:38-04
Xamarin addins: f21b254b56b36e417daee6da8b0300076f286ef1
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.10.5
Darwin Xamarin77s-Mac-mini.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64