Xamarin Forms iOS app dev - Two PCs - One iPhone

obal 1 Reputation point
2021-02-23T16:50:06.05+00:00

I am running Visual Studio Community 2019 on two PCs (one desktop and one laptop) with the same setup. On both PCs I want to use Xamarin Setup Hot Restart to create iOS apps to be deployed to the my single iPhone. The iOS apps developed on the first PC deploy to and run without any problems on the iPhone. However the IOS apps developed on the second PC deploy to the IPhone but stop immediately after being started. I subscribe to the Apple Developer Program and use Automatic Provisioning. Each PC gets its own certificate.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes

1 answer

Sort by: Most helpful
  1. obal 1 Reputation point
    2021-03-16T20:58:31.817+00:00

    I can't see through why it works but there seems to be a solution to the issue of using two Windows PCs in parallel to develop iOS apps for one iPhone:

    On the first PC you create a mobile app with Visual Studio. Xamarin Setup Hot Restart works without any problems. You can build, deploy and launch your app.

    However when you switch your work to the second PC and create another mobile app with Visual Studio things become more complicated. After having performed Xamarin Hot Restart, you have to go to the property page of iOS Bundle Signing and switch to Manual Provisioning and without doing anything more back to Automatic Provisioning and Select Team. After this detour you can build, deploy and launch your app.

    When you switch your work back to the first PC you have to apply the detour again.

    0 comments No comments