plu / simctl

Ruby interface to xcrun simctl
http://www.rubydoc.info/gems/simctl
MIT License
104 stars 19 forks source link

Add support for creating device with a specific architecture #40

Open lone-necromancer opened 1 year ago

lone-necromancer commented 1 year ago

Hi, I'm happily using this CLI and i noticed at a recent Xcode upgrade that some of my project needed to run on simulators which run with architecture of arch x86_64.

It would be really nice if "create_device" function had another param called "arch" or something of the sort.

Thanks for the help in advance

plu commented 1 year ago

Hi,

I don't see how this is possible:

➜  ~ xcrun simctl create
Create a new device.
Usage: simctl create <name> <device type id> [<runtime id>]

    <device type id>    A valid available device type. Find these by running "xcrun simctl list devicetypes".
                        Examples: ("iPhone X", "com.apple.CoreSimulator.SimDeviceType.iPhone-X")
    <runtime id>        A valid and available runtime. Find these by running "xcrun simctl list runtimes".
                        If no runtime is specified the newest runtime compatible with the device type is chosen.
                        Examples: ("watchOS3", "watchOS3.2", "watchOS 3.2", "com.apple.CoreSimulator.SimRuntime.watchOS-3-2",
                                   "/Volumes/path/to/Runtimes/watchOS 3.2.simruntime")