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

前端 未结 5 2127
别跟我提以往
别跟我提以往 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:35

    First off you will need a release build (not a dev build) to share the installable simulator .app

    To generate a Release build:

    1. make sure you go into edit scheme (next to the simulator selector)

    2. Under Run change the build configuration to Release

    Then you can right click the app and go into the DerivedData//Build/Products/Release-iphonesimulator/.app

    Copy the .app and share with whoever has xcode.

    That person then needs to do a few things.

    1. Download your app and add it in a location that they can access the path. example: Users//Downloads/test.app

    2. Get the device ID xcrun simctl list devices example 7FAB6CD2-70D0-416F-9C50-4C7C23B2ABCD

    3. With a valid simulator id, run xcrun simctl install 7FAB6CD2-70D0-416F-9C50-4C7C23B2ABCD Users//Downloads/test.app

    4. The app should install and they should be able to open the app.

提交回复
热议问题