This folder contains practical examples of using xcrun for various Xcode toolchain operations.
- Find SDK paths for different platforms
- Use SDKs with swiftc compilation
- List available simulators
- Boot, install, and launch apps on simulators
- Find Xcode tools
- Run tools with specific SDKs
- Install apps on physical devices
- Manage device connections
# Find iOS Simulator SDK path
xcrun --show-sdk-path --sdk iphonesimulator
# List available simulators
xcrun simctl list devices
# Compile Swift for iOS Simulator
xcrun --sdk iphonesimulator swiftc main.swift -target arm64-apple-ios18.5-simulator -o app- Xcode installed
- iOS Simulator available
- Physical device (optional, for device examples)