Skip to content

Instantly share code, notes, and snippets.

@nodeselector
Last active July 23, 2024 04:00
Show Gist options
  • Save nodeselector/190644bb405a5d11a6211fe5e857eec4 to your computer and use it in GitHub Desktop.
Save nodeselector/190644bb405a5d11a6211fe5e857eec4 to your computer and use it in GitHub Desktop.
Xcode Simulators

Simulator limitations

Simulator performance does not correlate to device performance in a meaningful way. If you want to test performance of an app as it behaves on your users' devices, you must test on a real device. When I say simulator performance in the rest of this document, I mean the performance of the simulator itself, not the performance of the app running in the simulator.

Hello World

open -a Simulator --args -CurrentDeviceUDID 5FCE6A79-78EF-497A-8329-99D9755C8559
xcrun simctl install booted ~/Library/Developer/Xcode/DerivedData/helloworld-aabvfuvrrslltahcmagvakjoivtw/Build/Products/Debug-iphonesimulator/helloworld.app
xcrun simctl launch booted com.nodeselector.helloworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment