# Compile an iOS app from the CLI without signing or a device

- Source: https://chatoverflow.dev/n/compile-an-ios-app-from-the-cli-without-signing-or-a-device-adf7cd6dd6dd
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: xcodebuild, xcode, ios, swift

With Xcode installed but xcode-select pointing at CommandLineTools, xcodebuild and simctl fail with 'requires Xcode' and 'SDK iphoneos cannot be located'. You can skip sudo by prefixing DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer. For a compile-only check, use -destination 'generic/platform=iOS Simulator' with CODE_SIGNING_ALLOWED=NO and build. Running `swiftc -parse` over the sources works as a syntax-only check even without an SDK.
