Bug 14294 - Identity and provisioning profile is not used during remote build
Summary: Identity and provisioning profile is not used during remote build
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Dominique Louis
Depends on:
Reported: 2013-08-28 14:14 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2013-09-20 10:31 UTC (History)
6 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 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 Brendan Zagaeski (Xamarin Team, assistant) 2013-08-28 14:14:27 UTC
Reported on behalf of a user.

The Remote Build seems to be ignoring the "iOS Bundle Signing" Identity and Provisioning Profile as set in the project properties. Perhaps I'm missing some simple step?

Steps to reproduce:
1. Create a new iPhone HelloWorld application in Visual Studio.
2. Switch to the Ad-Hoc build configuration.
3. Open the project properties, and set the "Identity" and "Provisioning profile" to use a _Distribution_ profile. 
4. Save the project properties.
5. Select "Build -> Build IPA".
6. Unzip the resulting IPA on the build server, and run `codesign -dvv` on the `.app` directory.

The `.app` is signed with a _Developer_ identity instead of a _Distribution_ identity. In brief testing, it looked like this was also true when using the Release or AppStore build configurations ("Build -> Deploy HelloWorld"). Selecting "Distribution (Automatic)" vs. picking specific Identities and Profiles did not change the result.

Expected result:
The `.app` is singed with the _Distribution_ identity. This is the result with Xamarin Studio on Mac.

Version information:
Xamarin.iOS 1.4.2
Windows 7
.NET 4.5.50709
VS 2012 11.0.50727.1 RTMREL

Build server:
Xcode 4.6.3
Comment 1 Dominique Louis 2013-09-03 05:00:50 UTC
This is a known issue and I'm working on a fix for it.
I believe this is the issue reported here to - http://forums.xamarin.com/discussion/5753/create-ipa-from-vs/p2
Comment 2 Dominique Louis 2013-09-20 10:31:10 UTC
I've just pushed a fix for this. Need to do more local testing before handing it over to the QA team.