Bug 19624 - When Missing provision profile: Build failed. Object reference not set to an instance of an object
Summary: When Missing provision profile: Build failed. Object reference not set to an ...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: 1.8.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-05-08 15:58 UTC by Frank A. Krueger
Modified: 2014-08-21 08:44 UTC (History)
2 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Frank A. Krueger 2014-05-08 15:58:07 UTC
I recently upgraded to the Alpa Xamarin.Mac and now can't build:

Build complete -- 0 errors, 1 warning

Updating application manifest

Merging Mono Runtime into app bundle
/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp -nolink "-minos=10.6" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/fak/Dropbox/Projects/Calca/Calca.Mac/bin/Debug" -n "Calca" --profile "4.5" --debug -a "/Users/fak/Dropbox/Projects/Praeclarum/Praeclarum.Mac/bin/Debug/Praeclarum.Mac.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Core.dll" "/Users/fak/Dropbox/Projects/Calca/Calca.Mac/bin/Debug/Calca.exe"
warning MM2006: Native library 'libX11.dylib' was referenced but could not be found.
warning MM2006: Native library 'libwinspool.drv.dylib' was referenced but could not be found.
warning MM2006: Native library 'libcups.dylib' was referenced but could not be found.
warning MM2006: Native library 'libfam.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgamin-1.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libasound.so.2.dylib' was referenced but could not be found.
bundling complete

Processing entitlements file

---------------------- Done ----------------------

Build failed. Object reference not set to an instance of an object
Build: 1 error, 0 warnings


=== Xamarin Studio ===

Version 5.0 (build 840)
Installation UUID: e51e2705-c52a-4ae8-aa07-c481d6ab8a7a
Runtime:
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.3.27 (Enterprise Edition)
Hash: 1f89a4b
Branch: 
Build date: 2014-05-04 19:42:38-0400

=== Xamarin.Android ===

Version: 4.12.4 (Enterprise Edition)
Android SDK: /Users/fak/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

=== Xamarin.Mac ===

Xamarin.Mac: 1.8.0.8

=== Build Information ===

Release ID: 500000840
Git revision: a2c688cdabf3e19598178ddca5dc88f875f45302
Build date: 2014-05-05 19:14:02-04
Xamarin addins: 4ace76e8c4a033f132d3c97d2d2159fa4bdba640

=== Operating System ===

Mac OS X 10.9.2
Darwin lepton.local 13.1.0 Darwin Kernel Version 13.1.0
    Wed Apr  2 23:52:02 PDT 2014
    root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64
Comment 1 Frank A. Krueger 2014-05-08 17:23:43 UTC
The error seems to be caused by a missing Provision profile!

Perhaps a better error message?
Comment 2 Mohit Kheterpal 2014-08-21 08:44:48 UTC
I have checked this issue and now we are getting proper error message for this
case using xam.mac 1.10.0.9-1

Error message : "Error: No valid Mac OS X code signing keys found in keychain."

Hence closing this issue.

Thanks