Bug 336 - MonoDevelop 2.8a1 Unable to deploy iPhone app on device
Summary: MonoDevelop 2.8a1 Unable to deploy iPhone app on device
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 4.x
Hardware: PC Mac OS
: --- blocker
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-19 12:17 UTC by Alex Soto
Modified: 2011-08-23 19:59 UTC (History)
6 users (show)

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


Attachments
Sample Project (6.66 MB, application/zip)
2011-08-19 12:17 UTC, Alex Soto
Details
Debug Error pic (42.63 KB, image/png)
2011-08-19 12:18 UTC, Alex Soto
Details
Release Error Pic (42.19 KB, image/png)
2011-08-19 12:19 UTC, Alex Soto
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 Alex Soto 2011-08-19 12:17:36 UTC
Created attachment 153 [details]
Sample Project

I'm trying to deploy a new untouched MonoTouch Single View application - iPhone

it deploys correctly to iPhone simulator but when I try to deploy to device I get

Installation failed: AMDeviceInstallApplication returned: 0xe800007e
The application was terminated by a signal: SIGHUP 

the funny thing here is that I'm able to deploy without any problems old projects made on older versions of MonoDevelop migrated by MonoDevelop 2.8, but any new projects created by MD 2.8 are getting this issue

i've attached the project and 2 pics of the error
Comment 1 Alex Soto 2011-08-19 12:18:51 UTC
Created attachment 154 [details]
Debug Error pic
Comment 2 Alex Soto 2011-08-19 12:19:19 UTC
Created attachment 155 [details]
Release Error Pic
Comment 3 Sebastien Pouliot 2011-08-23 11:02:37 UTC
Check (compare to working projects):
* the "Minimum Version" of your application is set for;
* the signing / provisioning profiles are correct;
Comment 4 Alex Soto 2011-08-23 14:42:30 UTC
Yes all of the settings are the same that on my working projects, also I don't have this issue on MD 2.6 RC2's  new projects the build and deploy ok
Comment 5 Sebastien Pouliot 2011-08-23 15:26:05 UTC
Deploying to the simulator is very different than deploying to the device. The error comes from a code path that is executed only for devices. Many additional validations are made, on the device, during installation.

From your project attachment I can see that the compiled* Info.plist has a MinimumOSVersion set to "5.0" - are your other projects 5.0-based too ? 

* the version inside "/bin/iPhone/Debug/HolaMDNew.app/"

Can you compare (or attach) the compiled Info.plist from a working project you built/deployed with 2.8a1 ?

Thanks
Comment 6 Sebastien Pouliot 2011-08-23 15:51:07 UTC
I can duplicate the same error if I edit my Info.plist to require "5.0" (MinimumOSVersion) and try to install the app into my (4.3) iPad.

I'll change the error message to be a bit more useful - but I do want to know if the same (or a similar) condition is happening to you ? (I will tweak the error message to cover both case if needed ;-)
Comment 7 Alex Soto 2011-08-23 16:01:41 UTC
Yikes, you are sooooo Right Sebastien (as always hehe) that was it, the minimum version so yeah a more detailed error would be really useful ;)
Comment 8 Sebastien Pouliot 2011-08-23 16:13:39 UTC
Thanks for the confirmation! Newer MT release will have a specific error message for 0xe800007e.
Comment 9 Alex Soto 2011-08-23 16:44:08 UTC
Sebastien one more thing why im unable to use lower version than 5.0 on MD 2.8a1 as minimum sdk? I just get defaul and 5.0 as options, is that a bug?
Comment 10 Sebastien Pouliot 2011-08-23 17:06:37 UTC
afaik the MD addin checks what's available on your system and adjust its UI automagically. i.e. you'll have a single OS SDK and several simulator SDK available (that's how Apple ship their SDK). 

In my case I get, from the add-in UI, the same choices as what was installed for the 4.3 iOS SDK, e.g.

$ l /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
total 0
drwxr-xr-x  8 root  wheel  272 18 Jul 11:37 iPhoneOS4.3.sdk
$ l /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
total 0
drwxr-xr-x  8 root  wheel  272 18 Jul 11:37 iPhoneSimulator3.2.sdk
drwxr-xr-x  9 root  wheel  306 18 Jul 11:37 iPhoneSimulator4.0.sdk
drwxr-xr-x  8 root  wheel  272 18 Jul 11:38 iPhoneSimulator4.1.sdk
drwxr-xr-x  8 root  wheel  272 18 Jul 11:38 iPhoneSimulator4.2.sdk
drwxr-xr-x  8 root  wheel  272 18 Jul 11:38 iPhoneSimulator4.3.sdk

p.s. I _think_ the "Default" is only useful for the simulator build (or I just don't know how it can help ;-)
Comment 11 Alex Soto 2011-08-23 19:15:56 UTC
Ok, so a solution its to manually override that value of the plist? if so, would that be ok on distribution release? I mean just overriding that setting
Comment 12 Mikayla Hutchinson [MSFT] 2011-08-23 19:26:37 UTC
Generally, you should always build with the latest SDK. That's why the value defaults to "Default", which will always use the latest SDK installed, so you don't have to manually update it.

However, the minimum OS can be lower than the SDK version. You can code to the API that was only available in the older OS, and the app will run fine on the older OS. What's more interesting is that you can check the OS at runtime and use newer features on newer OSes.
Comment 13 Alex Soto 2011-08-23 19:59:12 UTC
Thanks a lot Michael and Sebastien for the explanation :)