question

StanLogan avatar image
0 Votes"
StanLogan asked StanLogan answered

How to find build output for iOS Simulator?

We build our Xamarin Forms apps from Visual Studio on Windows with a paired Mac.

In addition to the normal .apk and .ipa files, we would like produce a build artifact that is suitable for use with the iOS Simulator, so that other people can acquire it, and install and run on the Simulator.

As I understand it, the Simulator needs a "myAppName.app". I am not even sure if this is a file or folder. If I run a build for the iPhoneSimulator configuration, does the necessary file/folder exist on the PC?

In ...myAppName.iOS\bin\iPhoneSimulator\Release, I find a "myAppName.iOS.app" folder, but that won't run in the simulator.

If the proper output only exists on the mac, can someone point me to the correct location?

Information has been hard to find on this, so I may be trying to do the wrong thing. All input is appreciated.

dotnet-xamarinformsdotnet-ios
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry, just a little bump here - hopefully another set of eyes might see the question.

0 Votes 0 ·

Unfortunately there is no output file for iOS Simulator to let other user run it on the Simulator .

We can only create IPA file for real device , and then deliver the file to other test users ,check the docs here .


0 Votes 0 ·

Thank you for your reply.

I understand that we are doing something a little out of the ordinary, but I have several indications that your answer is not correct.

Most significantly, a colleague of mine (currently on vacation) has already successfully done this - my problem is that I can't figure out which steps produced the output, and where it is located. Secondarily, it seems that if an app can be run on the simulator at all, the appropriate build output for the simulator must exist - otherwise there would be nothing for the simulator to run.

If anyone else has explored this, please chime in. I will have the info in a week or so when my colleague returns, but I need the info sooner if possible. If no one else responds, I will update this with the solution when I have it.

0 Votes 0 ·
Show more comments

1 Answer

StanLogan avatar image
0 Votes"
StanLogan answered

Hi All,

Here is what we have found - if you build on Windows in the iOS/Debug/iPhoneSimulator configuration, a working simulator version of your app should be found on the paired mac, at the following location:

/Users/YOURBUILDUSERNAME/Library/Caches/Xamarin/mtbs/builds/YOURAPPNAME.iOS/SOMEIDENITIFIER/bin/iPhoneSimulator/Debug/YOURAPPNAME.iOS.app

where the information in all caps will be replaced with the information specific to your situation.

It does appear that once you have this output, you can transport it to another mac and successfully run it in a simulator there.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.