Bug 11928 - Can't Deploy to iPad for Debugging
Summary: Can't Deploy to iPad for Debugging
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-04-24 04:10 UTC by jonathan.dhaene
Modified: 2013-08-05 12:42 UTC (History)
4 users (show)

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


Attachments
Basic iPad project (4.50 MB, application/octet-stream)
2013-04-24 04:10 UTC, jonathan.dhaene
Details


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:
RESOLVED FIXED

Description jonathan.dhaene 2013-04-24 04:10:12 UTC
Created attachment 3861 [details]
Basic iPad project

Hello,

I made a default Single Page App for iPad in Xamarin. In the iOS Bundle Signing I select the provision and the signing identity. After that I click "Run > Upload To Device" and I get the following:

Building: MyFirstIpadApp (Debug|iPhone)

Detecting signing identity... Provisioning Profile: "cevi dev profile" (2D89D203-357C-4BED-A2CC-66796FDAD008) Signing Identity: "iPhone Developer: guy rammant (S9JEB82N2P)" App ID: "98RZY5XM7R.be.cevi" Performing main compilation... /Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/Main.cs" "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/AppDelegate.cs" "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/MyFirstIpadAppViewController.cs" "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/MyFirstIpadAppViewController.designer.cs" Compilation succeeded - 1 warning(s)

/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/MyFirstIpadAppViewController.cs(30,38): warning CS0672: Member MyFirstIpadApp.MyFirstIpadAppViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)' overrides obsolete memberMonoTouch.UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'. Add the Obsolete attribute to `MyFirstIpadApp.MyFirstIpadAppViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)' /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol related to previous warning)

Build complete -- 0 errors, 1 warning

Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache" --nomanifest --nosign -dev "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -debug -linksdkonly -sdk "6.1" -targetver "3.2" --abi=armv7 "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.exe" MonoTouch Business version 6.2.3 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk Copied /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.exe to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/MyFirstIpadApp.exe Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/mscorlib.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/monotouch.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/System.Core.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/System.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/Mono.Security.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/System.Xml.dll Linking SDK only for assembly /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.exe into /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app MONO_PATH=/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,soft-debug,no-direct-calls,iphone-abi,outfile=/var/folders/7l/13x_dsyn4kd7kck5nvvt83780000gs/T/tmp1657719f.tmp/MyFirstIpadApp.exe.armv7.s "/Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/MyFirstIpadApp.exe" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -miphoneos-version-min=3.2 -arch armv7 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -x assembler-with-cpp -c /var/folders/7l/13x_dsyn4kd7kck5nvvt83780000gs/T/tmp1657719f.tmp/MyFirstIpadApp.exe.armv7.s -o /var/folders/7l/13x_dsyn4kd7kck5nvvt83780000gs/T/tmp1657719f.tmp/MyFirstIpadApp.exe.armv7.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -Wl,-no_pie -miphoneos-version-min=3.2 -gdwarf-2 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/monotouch.armv7.cache.tKGwxpz2Ok1MTQJWePfIyxWS8cY=.o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/System.armv7.cache.srFA2KgFDRe1JqRn+-H8xPq4qb8=.o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/mscorlib.armv7.cache.kbYPiyP0jSbPv2Teni8krE7jwDU=.o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/System.Core.armv7.cache.85IKvYellrKrxutS-fM7pRa2OV8=.o /var/folders/7l/13x_dsyn4kd7kck5nvvt83780000gs/T/tmp1657719f.tmp/MyFirstIpadApp.exe.armv7.o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/main.armv7.cache.aJ1X1kAHgFguNb7g46JtOD9N3CE=.o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/obj/Debug/mtouch-cache/registrar.armv7.cache.biVZJiCLTv4k7N9sT90GPmEV+EU=.o -o /var/folders/7l/13x_dsyn4kd7kck5nvvt83780000gs/T/tmp1657719f.tmp/MyFirstIpadApp -framework CFNetwork -framework Foundation -framework UIKit -framework AudioToolbox -lz -liconv -u _mono_pmip -u _monotouch_create_managed_ref -u _monotouch_release_managed_ref -u _monotouch_IntPtr_objc_msgSend_IntPtr -u _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u _CloseZStream -u _CreateZStream -u _Flush -u _ReadZStream -u _WriteZStream -lmono-2.0 -lmonotouch-debug -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip /Applications/Xcode.app/Contents/Developer/usr/bin/dsymutil /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app/MyFirstIpadApp -o /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app.dSYM /usr/bin/mdimport /Users/Jonathan/Projects/MyFirstIpadApp/MyFirstIpadApp/bin/iPhone/Debug/MyFirstIpadApp.app.dSYM

Updating application manifest

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

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

What do I do wrong?
Comment 1 Sebastien Pouliot 2013-04-24 19:25:49 UTC
I had no problem with Xamarin.iOS 6.2.x (like the build log shows) using your attachment. The last step before the NRE is

> Updating application manifest

which is done from Xamarin Studio addin. Could you tell us which version you're using ?

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 2 jonathan.dhaene 2013-04-25 02:42:16 UTC
I'm using the 4.0.4 (Build 2) version of Xamarin studio with the latest iOS update.

If I build the project for the virtual iPhone I get no errors. But when I build it to run on a iPad the exception gets thrown.
Comment 3 jonathan.dhaene 2013-04-25 02:44:16 UTC
=== Xamarin Studio ===

Version 4.0.4 (build 2)
Installation UUID: 2ccfb65d-e13c-4755-8d66-751084b2a99b
Runtime:
	Mono 2.10.12 (mono-2-10/c9b270d)
	GTK 2.24.16
	GTK# (2.12.0.0)
	Package version: 210120000

=== Apple Developer Tools ===

Xcode 4.6.2 (2067,2)
Build 4H1003

=== Xamarin.iOS ===

Version: 6.2.4.2 (Business Edition)
Hash: c4f6316
Branch: 
Build date: 2013-22-04 18:55:23-0400

=== Xamarin.Android ===

Version: 4.6.4 (Business Edition)
Android SDK: /Users/Jonathan/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
Java SDK: /usr

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 400040002
Git revision: a8bf58d398a13bcc7595f5f85adae04865a834d4
Build date: 2013-04-17 16:35:47+0000
Xamarin addins: f24db65837464cb72995ce5e84fa62fb0069724c

=== Operating System ===

Mac OS X 10.8.3
Darwin macbook-pro.intranet.cevi.be 12.3.0 Darwin Kernel Version 12.3.0
    Sun Jan  6 22:37:10 PST 2013
    root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
Comment 4 jonathan.dhaene 2013-04-25 02:58:52 UTC
When I create a project in XCode and build it to debug on a iPad, no errors are thrown. This problem only exists in Xamarion.iOS.
Comment 5 Jeffrey Stedfast 2013-04-25 10:05:04 UTC
The code that merges the Info.plist into the output .app directory is throwing an exception for some reason...

I'll try to take a look today or tomorrow.
Comment 6 Jeffrey Stedfast 2013-04-25 15:07:31 UTC
Could you try reproducing this again and then attach ~/Library/Logs/XamarinStudio-4.0/Ide.log?

Hopefully the exception got logged...
Comment 7 Jeffrey Stedfast 2013-04-25 15:09:25 UTC
Unfortunately, like Sebastien, I seem unable to replicate the problem on my machine :(
Comment 8 jonathan.dhaene 2013-04-26 01:43:55 UTC
Hello, I cleared all the files in ~/Library/Logs/XamarinStudio-4.0 because there where a lot of ide.log variants. To generate only one Ide.log file possibly containing the error I rebuild the project and now I DON'T get the error anymore!
I don't get it! But I'm happy! And it's Friday! So I'm super happy!

Had installed the latest updates but still had the error, didn't rebooted the Mac after install. Cleared the Logs and now it builds! Have no iPad attached right now because my boss has no iPad for me to do my job, so I'm still not closing this topic until I can build and upload to a device :-)
Comment 9 Jeffrey Stedfast 2013-04-26 07:11:41 UTC
Sounds good to me, I'll leave as NEEDINFO until you can reproduce.
Comment 10 jonathan.dhaene 2013-04-26 07:13:33 UTC
Got to build and upload it to the iPad! :-)
It works now!
Comment 11 Jeffrey Stedfast 2013-08-05 12:42:29 UTC
oops, forgot to close this