Xcode Simulator Commands

You can use the following commands with simctl to control and manage Xcode Simulator. For more details and options, you can run xcrun simctl help or xcrun simctl help <command> in the terminal. list: List available devices, device types, runtimes, or device pairs. Example: xcrun simctl list create: Create a new device. Example: xcrun simctl create "iPhone 12" com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-4 delete: Delete a device or all unavailable devices. Example: xcrun simctl delete C0D7F8B0-6B7A-4A1D-AF2C-8C6E7D2B0E7F boot: Boot a device....

May 15, 2023 · 3 min · Vaibhav Narkhede

Xcodebuild Commands

How to Build an Xcode Project from the Command Line? If you are working on an iOS project, you probably use Xcode as your IDE. Xcode provides a graphical interface for creating, editing, debugging, and testing your app. But sometimes, you may want to build your project from the command line, for example, when you are using a continuous integration or continuous delivery (CI/CD) pipeline. In this post, I will show you how to use xcodebuild, a set of commands that let you build an Xcode project from the terminal....

May 15, 2023 · 7 min · Vaibhav Narkhede