How to find build output for iOS Simulator?

Stan Logan 171 Reputation points
2021-03-19T15:46:33.317+00:00

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.

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

Accepted answer
  1. Stan Logan 171 Reputation points
    2021-03-26T18:41:21.57+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful