xcode build/archive app for anyone to run in a simulator

前端 未结 5 2128
别跟我提以往
别跟我提以往 2021-02-14 04:35

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

5条回答
  •  抹茶落季
    2021-02-14 05:17

    1. 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]

    2. 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.

    3. 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.

    4. 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/

提交回复
热议问题