An application for creating / archiving xcode for everyone who will work in the simulator

I am trying to understand how I can create / archive an iOS application in xcode so that I can send it to anyone and they can run a simulator in it. I thought I could just create it and run it in the simulator and pull out the .app file, but I had no luck. I would like to build it so that anyone I give him can run it in any simulator using ios-sim phone synchronization.

Any information would be great!

thanks

+7
source share
5 answers

If you have a .app package, you can create it and send it to someone else. Then they can extract it and use xcrun simctl install <device UDID> <path to app bundle> to install your application on this simulator.

+5
source
  • Create the application in the simulator, then find the simulator data folder. You can get a list of UDID simulators by typing instruments -s devices in the terminal. UDID is a string between square brackets. Find the search engine ~/Library/Developer/CoreSimulator/Devices/[Simulator UDID]

  • In the folder with the data of the simulator, find data/Containers/Bundle/Application , you will see some folder there, if you have several applications created earlier, open them one by one and find the one that has the name of your application inside.

  • Compress app_name.app and send it to others. Ask others to use the instruments -s devices command in the terminal to find the UDID.

  • Open Xcode and the selected simulator, then open a terminal, type xcrun simctl install <Device UDID> <Path to unzipped app_name.app>

The application must be successfully installed in the simulator, I wrote a blog post about this using the screenshot here: https://fluffy.es/how-to-archive-ios-app-for-simulator/

+3
source

All answers here are incorrect.

You cannot run the .IPA file on the simulator. The simulator runs files compiled for the x86 processor, and IPA files compiled for the ARM processor on the iPhone. In addition, .IPA files must contain a valid certificate, while simulator applications do NOT need a certificate.

After creating the application, go to the left navigation bar, select "Products"> "appName.app", right-click on it and select "Show in Finder". Finder will show the .app file, and you can send the file to your colleague / client and ask him to drag it into iOS Simulator.

Get ios .app folder for simulator

+3
source

According to the documentation:

Applications created for the simulator cannot be archived or presented on the App Store. Install the iOS application to launch to enable archiving for your application.

You cannot archive the application created for the simulator.

https://developer.apple.com/library/ios/technotes/tn2215/_index.html

+1
source

First of all, set the correct bundle identifier with the build setup and the iOS version that is required to run the application.

**

For device

** 1.

You can create an archive using and generating ipa

or create an application, then you get .app, you can drag .app to itune and get .ipa, showing in finder.

**

For simulator

** 2. path: - / Users / Krishan / Library / Application Support / iPhone Simulator / 6.0 / Applications Open the folder with the above folders and the folder with the zip file that you want to provide. Now unzip the palette to unpack the same application used above, shown on the simulator, will work successfully.

+1
source

Source: https://habr.com/ru/post/1206487/


All Articles