Generate IPA for iOS in xamarin forms of visual studio 2017 from windows

0

you will see I have a project in xamarin forms developed in visual studio 2017, the goal is to be multiplatform. For debugging and other tests I use an android mobile connected by cable to the PC, windows 10 for the UWP tests and a virtual machine with MAC for the execution of an iOS emulator and in this way see if the app works on iphone or ipad.

The next step is to generate the application to install and test it on external devices, for android and windows I have no problem, I generate the app for ad hoc distribution on android or the windows installer and everything without problems. The problem comes when I try to generate the .IPA file for installation on an ipad.

I do not know very well the steps to follow to generate that installer, in principle according to what I was seeing on the internet, I created the certificates on the development web of apple, I started with a production certificate, then I created the one of the application and the device with its guid and to end generate the distribution indicating the profile and the device. Once this is done, I go to visual studio and try to put it ad-hoc configuration which is what allows you to generate the .IPA file in the computer, and in theory all you need to do is compile (setting the ad-hoc configuration and device would put iphone in this case and not iphonesimulator), but it gives me different errors depending on the configuration I put. The most common of them all is the following:

Let's see if anyone knows anything else about this procedure for the generation of the installer for iOS.

    
asked by Marcos Muñoz Morales 09.04.2018 в 10:08
source

1 answer

0

IOS is pretty special in terms of testing and deploying. I, with Xamarin and from windows, I have never deployed Ad Hoc, I have always launched devices that I had connected (in the mac) or emulators. If it works for you, what I have done to obtain the IPA is, in the properties of the iOS project in the fifth option (iOS IPA Options), mark the check (Build iTunes PAckage Archive (IPA)), that way when you do the compilation, in the corresponding build folder, along with all the files you need, generates the IPA (debug, or release or whatever.

Why is my experience useful? As you mentioned, you must have the application created in the iOS development portal and the certificates generated. If you are going to launch devices in tests you must have added the ids of the devices to that application.

Then Xcode has to know who the developer is, either adding the user account or adding the certificate, so that in properties of the iOS project in visual studio, in the 4 section (iOS Bundle Signing) you have to leave choose the first two, in the first the developer and in the second the project.

If all that is correct I understand that, just as it lets you try, it should let you compile Ad Hoc.

    
answered by 13.04.2018 в 12:30