I am trying to figure out how I can build/archive my iOS application in xcode so that I can send it to anyone and they can run in it a simulator. I thought I could just build i
Build the app in simulator, then locate the simulator data folder.
You can get the list of simulator UDID by typing instruments -s devices
in Terminal. The UDID is the string between the square brackets. Locate your finder to ~/Library/Developer/CoreSimulator/Devices/[Simulator UDID]
Inside your simulator data folder, locate to data/Containers/Bundle/Application
, you will see some folder there if you have multiple apps built before, open them one by one and find the one with your app name inside.
Compress the app_name.app
and send it to others. Ask other to use the command instruments -s devices
in terminal to find the UDID as well.
Open Xcode and the selected simulator, then open terminal, type xcrun simctl install
The app should install successfully in the simulator, I wrote a blog post about this with screenshot guide here : https://fluffy.es/how-to-archive-ios-app-for-simulator/