Bug 16435 - [Physical Device] Unable to deploy application first time, getting deployment failed error
Summary: [Physical Device] Unable to deploy application first time, getting deployment...
Status: VERIFIED DUPLICATE of bug 16313
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 0.x Insider Preview
Hardware: PC Windows
: Highest blocker
Target Milestone: 1.10.x (VS2013+1)
Assignee: Dominique Louis
URL:
Depends on:
Blocks:
 
Reported: 2013-11-25 05:11 UTC by narayanp
Modified: 2014-01-14 05:36 UTC (History)
9 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 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 DUPLICATE of bug 16313

Description narayanp 2013-11-25 05:11:14 UTC
Steps to reproduce:
1. Open VS.
2. Create or Open iOS application.
3. Connect VS to Build host.
4. Click Start Debug button.
5. Observe that it gives popup to select Deploy option from Configuration manager.
6. Now check option 'Deploy'
7. Again click on Start button

Actual Result: Getting deployment error.

Note: Sometimes application deployed to device (1 out of 10 attempts)

Expected Result: Application should deploy and launch after clicking on Start button.


Supplement info:
http://screencast.com/t/5yb3lQH8
Mac server log:https://gist.github.com/AkhileshKumar01/fbb5f02fa93592667afb
Debuglog:https://gist.github.com/AkhileshKumar01/3be84d98195c0adce2ae
Build log:https://gist.github.com/AkhileshKumar01/1dd7be7ff9c13393c154


Environment details:
All Windows
VS 2013/2012/2010
MTVS 1.10.10.0
X.iOS 7.0.4.211
Comment 1 dean.ellis 2013-11-25 05:17:25 UTC
This looks like this is the problem on the mac side

error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
1>System.NullReferenceException: Object reference not set to an instance of an object
1>  at MonoTouch.Tuner.InternalPInvoke.GetEntryPoints (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 
1>  at MonoTouch.Application.StripNativeCode () [0x00000] in <filename unknown>:0 
1>  at MonoTouch.Application.Build () [0x00000] in <filename unknown>:0 
1>  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
1>  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
Comment 2 dean.ellis 2013-11-25 06:04:20 UTC
can you provide details of the configuration setup (or the sample project). It seems from the screencast you are in Debug mode, but are building the Release configuration of the project. When I do this I get a warning about no debug symbols, which is not present in the screen cast.
Comment 3 narayanp 2013-11-25 06:22:25 UTC
An update to this issue is:

There are some observation for this issue with both mono 3.2.4 and 3.2.5:

1) Open VS, create a new project, deploy => FAIL

2) Open VS, create a new project, deploy => FAIL, Deploy AGAIN=>PASS

3) Open VS, create a new project deploy (fail Project from Obs 1), Restart VS, open same project, deploy => PASS

4) Open VS, Create project, Close VS, Restart VS, Open same project, deploy => FAIL
Comment 4 dean.ellis 2013-11-25 06:59:48 UTC
narayanp, I assume you are filling in the Application name and Identifier before trying to build and deploy?
Comment 5 narayanp 2013-11-25 07:21:22 UTC
Yes Dean, I have added those things in iOS Application.
Comment 6 dean.ellis 2013-11-25 09:35:07 UTC
sebastien, any ideas where this error might be coming from?

error MT0000: Unexpected error - Please file a bug report at
http://bugzilla.xamarin.com
1>System.NullReferenceException: Object reference not set to an instance of an
object
1>  at MonoTouch.Tuner.InternalPInvoke.GetEntryPoints (Mono.Linker.LinkContext
context) [0x00000] in <filename unknown>:0 
1>  at MonoTouch.Application.StripNativeCode () [0x00000] in <filename
unknown>:0 
1>  at MonoTouch.Application.Build () [0x00000] in <filename unknown>:0 
1>  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
1>  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
Comment 7 Sebastien Pouliot 2013-11-25 09:42:42 UTC
Looks like a dupe of #16313
Comment 8 Dominique Louis 2013-12-03 05:20:30 UTC

*** This bug has been marked as a duplicate of bug 16313 ***
Comment 9 Mohit Kheterpal 2014-01-14 05:32:34 UTC
Today we have checked this issue with following builds :

VS 2013 
X.iOS 7.0.6.166
iOS for VS 1.10.36

Now we are not able to reproduce this issue. We are able to deploy application on device with adhoc without any error.

Hence closing this issue.
Comment 10 Mohit Kheterpal 2014-01-14 05:36:31 UTC
Today we have checked this issue. We are able to deploy application on device in first time without any error.

VS 2013 
X.iOS 7.0.6.166
iOS for VS 1.10.36

Hence closing this issue.