How to install apps on Xcode 6 iOS Simulator

后端 未结 4 1652
庸人自扰
庸人自扰 2020-12-14 00:25

I\'m looking for a way to install the mail application on the Xcode 6 iOS Simulator.

Additionally, how do I install apps that are already public on the Appstore so t

4条回答
  •  眼角桃花
    2020-12-14 01:19

    NOTE: The receiver of the simulator app has to boot up the same simulator and iOS version, as what was used to compile the simulator app bundle.

    To install an app compiled for the simulator, you have to:

    1. Boot up the simulator you want to install the app on (and leave it running for step 2).
    2. To install StackOverflow.app from your Desktop, write the following in terminal: xcrun simctl install booted ~/Desktop/StackOverflow.app

    You should now instantly see the app icon appear in the simulator (likely appearing on page 2).


    To obtain the simulator app you want to distribute, you can run this command in the Xcode console (this works at least when the simulator app has paused on a breakpoint): po NSHomeDirectory()

    The folder will be something like:

    /Users/MyHomeFolder/Library/Developer/CoreSimulator/Devices/09BB353F-3AF9-4A2A-8CDB-0F15634AD6D8/data/Containers/Data/Application/8F509C84-6809-461D-9F9E-06811EF9A700

    The app bundle will be inside the Containers folder at Bundle/Application/3ADE9CF0-F6D0-4461-9B82-30A86580D2C7/StackOverflow.app

    Distribute the .app file, specifying the simulator device and iOS version used when compiling the bundle (the same has to be used by the receiver).

提交回复
热议问题