Reputation: 75
I want to learn a quick way to install my iOS app to all types of simulator (iphone4s, iphon5s, ipad2 ..) at once in XCode GUI.
Is this possible?
Upvotes: 2
Views: 142
Reputation: 23641
It's certainly possible but non-trivial.
Installation of an app can be done using simctl, the CLI to CoreSimulator.framework. You can run 'xcrun simctl install ' to install an app to a particular device.
For this to work, the device needs to be booted, but the Non-UI experience you get through 'xcrun simctl boot' is currently not sufficient for this to work. You need the device to be fully booted (as Simulator.app does) for the install to work.
Simulator.app unfortunately only allows one device to be booted at a time, but there's nothing stopping you from creating multiple copies of Simulator.app (one for each device you want running). You'll want to edit Info.plist to change the bundle identifier so they don't conflict with eachother and resign the app bundle with the codesign utility.
Upvotes: 1
Reputation: 5563
No, the iOS Simulator cannot run multiple apps or multiple devices simultaneously.
Upvotes: 0