ivbtar
ivbtar

Reputation: 879

How can I test ios app i coded on Xamarin.Forms on Windows 10 using a real iPhone iOS device?

Currently i don’t have apple developer account. I am developing on Xamarin.Forms in Visual Studio 2019 on Windows 10. I also have a mac device. I installed xcode on this mac. I run simulators on windows by the help of this mac connection. But i want to test my app on real iphone. How can i do this ?

Upvotes: 1

Views: 3604

Answers (3)

Mattéo
Mattéo

Reputation: 68

To be able to deploy on a physical iOS Device, you either need to have an Apple Developer Account or you can get a free provisioning profile from XCode (No Apple Developer Account required).

To get a free provisioning profile,

You have to (on your Mac):

  1. Open XCode > Preferences and add your Apple ID in the Accounts section. You can then close the Preferences tab.
  2. Create a new project and select Single View App. In the Team drop-down list, set it to the Apple Id you just added.
  3. After the creation of the project, target your iOS device for building.
  4. Open General > Identity and make sure the Bundle Identifier matches the one found in your info.plist directly from your Xamarin.iOS app.
  5. Under Signing, select Automatically manage signing and select your Team.

You should now be able to see your provisioning profile when clicking the 🛈 symbol under Signing - Provisoning Profile and you can test the deployment by clicking the run button.

To deploy your app from Visual Studio:

  1. Make sure your Visual Studio is paired to the Mac.
  2. Connect your iOS Device to the Mac
  3. Navigate to iOS Bundle Signing in Your iOS Project > Properties.
  4. For Configuration, select Debug.
  5. For Platform, select iPhone.
  6. Select Manual Provisioning.
  7. Select the provisioning profile and the signing identity created by XCode

You should now be able to run the app. (Don't forget to target your IPhone for Deployment)

For more info, visit (https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning?tabs=windows)

Upvotes: 1

Ninaada Bellippady
Ninaada Bellippady

Reputation: 78

You cannot run your development app on iOS device unless you have an Apple developer account. After you create the account, you need to create provisioning certificates for the device, download them. Only then you can run it

Upvotes: 1

WilliamD47
WilliamD47

Reputation: 183

Plug your phone into your computer using a USB to Lightning connector. Click Trust on your phone. Click on the simulator on XCode and choose your phone name. Click build. You will get an error on your phone saying untrusted developer. Go to settings on your phone, click general then profiles. Click on the only one there and click trust. Now you can open your app.

Upvotes: 0

Related Questions