Bug 17804 - Hotfix after 1.10.x: project build and runs only once, after it always fails
Summary: Hotfix after 1.10.x: project build and runs only once, after it always fails
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.10.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Dominique Louis
Depends on:
Reported: 2014-02-16 18:18 UTC by softlion
Modified: 2014-05-07 01:48 UTC (History)
6 users (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 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 softlion 2014-02-16 18:18:05 UTC
ios app will build, deploy and run only once in ios 7 simulator.

Step to reproduce:
- Start with VS2013 and an ios project.
- Build and start debugging on ios 7 simulator (from vs2013).
- Stop debugging by killing the app on the simulator (long press home then slide up the app).
- Try to start debugging on ios 7 simulator (from vs2013).

Version: latest with 7.0.7 hotfix from last friday.
Comment 1 softlion 2014-02-16 18:39:08 UTC
Also, if while debugging in ios7 simulator (through vs2013) the app process stops unexpectedly, VS2013 stays blocked, and the message "Visual Studio is busy" is displayed. Only way to get out is to kill the VS2013 process.
Comment 2 softlion 2014-02-16 19:06:51 UTC
Also, to get the system to work again, the xamarin build host must be restarted before restarting VS2013. Otherwise nothing happens on next debug.
Comment 3 softlion 2014-02-16 19:19:21 UTC
Also, stopping Xamarin Build Host while a build is still in progress on VS2013 prevent VS2013 from closing. Also you can not cancel the build, even if Xamarin Build Host is closed.
Comment 4 softlion 2014-02-17 02:35:51 UTC
Also, after VS2013 is stuck in "build" mode (and you have to kill its process), if you restart it, it says the build host is connected to another visual studio. You have to stop/start build host, the reconnect VS2013.

If you then build, VS will stop responding in builing mode. You must stop both VS2013 and the build host, then restart the build host, then restart visual studio.

And you have to do this each time your app fails ...... 30 times per day ?!
Comment 5 Sadik Ali 2014-02-25 04:11:17 UTC
I have checked this issue and followed steps as mentioned in bug description 

I am not able to reproduce this issue. Refer screen cast: http://screencast.com/t/t55dTFlLpT

Window 7
X iOS 1.10.39
Xamarin Build Host: 7.0.7 hotfix

Let me know if I am missing any thing.
Comment 6 PJ 2014-02-25 08:05:42 UTC
Hrm, it seems like Benjamin is reporting an issue with the 1.12 builds, but those haven't been released anywhere.

Benjamin can you confirm the MTVS version you're using?
Comment 8 Sadik Ali 2014-02-26 02:14:14 UTC
I have checked this on below environments:

VS 2013
X iOS 1.12.217 
X iOS Build Host

I followed steps mentioned in bug description but unable to reproduce issue. Refer screen cast: http://screencast.com/t/pEhbAaV39BiW.
unable to checked the comment 2 due to depend upon above issue.

Also I check comment 3 on same environments but unable to reproduce. Refer screen cast: http://screencast.com/t/HpdHVxa1A. unable to check comment 4 as it depends upon comment 3.

Can you please provide some more details so that I can check these issues at our end.
Comment 9 softlion 2014-02-26 02:29:07 UTC
It is a cascade of problems, the reproduce steps won't reproducte the problem.

The first problem was this bug: https://bugzilla.xamarin.com/show_bug.cgi?id=17898
After this bug is triggered, if you have fixed your project, vs2013 stays in "build" mode and won't let you stop debugging or even close its window.

The same can happen without this bug with these steps:
- start debugging an ios project from VS2013 on ios7 simulator
- when the app is running in the simulator, kill it (using shift+home+H then swipe up its window).
After killing the app, debugging on vs won't stop and you won't be able to close its window.
Even if you restart VS2013, the project won't deploy/debug again.

To workaround this bug, you have to to things in this order: force close vs2013, close xamarin build host, restart xamarin build host, restart visual studio. Then deployment/debugging will work again.
Comment 10 softlion 2014-05-07 01:48:45 UTC
fixed in latest version