Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app doesn't start automatically when using Xamarin Studio

Probably a simple settings question, but I can't seem to find the setting. Running Xamarin Studio 3 with an iOS project. When I hit Run (the play symbol), the app builds and deploys. But the app doesn't start and I have to start it manually. It's the same on three phones and two iPads so it must be a setting in Xamarin Studio or on the Mac itself.

The message is as follows:

"Waiting for debugger to connect... The application has been build and uploaded, or is already up to date".

I then manually have to start the app, the debugger connects and all is well. Not a bug problem, but something I would like to know the cause of. :)

Thanks

Johan

like image 582
Johan Karlsson Avatar asked Jun 17 '14 10:06

Johan Karlsson


1 Answers

enter image description here

There is new type of issue which looks exact the same. Just in case, here is a solution which worked well for me.

Problem: Can't debug. It says wrong "Provisioning profile"!

What you do: You keep changing "configuration", "platform", "identity" and "Provisioning profile" using "iOS Bundle Profile" tab, because issue says it is a wrong Provisioning profile, but nothing helps.

What really happens: Nothing. For some reason Xamarin extension doesn't save changes to the project file

Solution: Find your *.csproj file and open it in text editor (I hope you are using notepad++). Find and delete <CodesignKey> and <CodesignProvision> sections. Save. Reload solution in Visual Studio and if you satisfied with the result - hit "Like" button :-)

like image 199
Pavel Kovalev Avatar answered Oct 20 '22 03:10

Pavel Kovalev