Bug 30050 - Unable to build project using xbuild from command line
Summary: Unable to build project using xbuild from command line
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 5.9
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2015-05-13 15:45 UTC by Aaron Sky
Modified: 2015-05-13 17:54 UTC (History)
1 user (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 Aaron Sky 2015-05-13 15:45:41 UTC
I'm getting a build failure in xbuild command line that isn't happening in IDE. I am using a freshly created iOS template project with no changes other than the introduction of a new build configuration (AppStore|iPhone) and a change of bundle ID to one supported by my provisioning profiles.

The command I'm using is: xbuild /p:Configuration=AppStore /p:Platform=iPhone /target:Build /p:BuildIpa=true sdfghjkl.sln
Expected Result: The project builds
Actual Result: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing task CollectITunesSourceFiles: Required property 'SessionId' not set.
				Build FAILED.
				/Volumes/Needle/Users/aaronsky/Projects/sdfghjkl/sdfghjkl.sln (Build) ->
				(Build target) ->
				/Volumes/Needle/Users/aaronsky/Projects/sdfghjkl/sdfghjkl/sdfghjkl.csproj (default targets) ->
				/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CreateIpa target) ->
					/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing task CollectITunesSourceFiles: Required property 'SessionId' not set.
					 0 Warning(s)
					 1 Error(s)
				Time Elapsed 00:00:10.5111330

Complete build output from Terminal: https://gist.github.com/aaronsky/5102ecb69188a4137d7a

Environment Info

=== Xamarin Studio ===

Version 5.9.1 (build 3)
Installation UUID: 0c38ad8a-9e2b-4b47-bc12-c639499efc27
	Mono 4.0.0 ((detached/d136b79)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000143

=== Apple Developer Tools ===

Xcode 6.3.1 (7703)
Build 6D1002

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 6e57eb7
Branch: master
Build date: 2015-05-12 23:19:56-0400

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509010003
Git revision: aad75a6e7e48f18120ce41f47d0ff2c6216f49c3
Build date: 2015-05-08 12:46:18-04
Xamarin addins: 1246b3044cbb7f56a217334f8fc5489ef8eefe3f

=== Operating System ===

Mac OS X 10.10.3
Darwin Aarons-iMac.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Jeffrey Stedfast 2015-05-13 15:54:16 UTC
Comment 2 Aaron Sky 2015-05-13 17:54:27 UTC
I have been able to verify the fix in XI The project builds as expected, the IPA is generated, and the iTunesMetadata.plist files are present if the flag isn't set and absent when the /p:IpaIncludeArtwork flag is set to false.