How would I run swift build
for a specific device, e.g. iPhone 12, or specific OS, e.g. iOS12
? I also can't find any docs for the swift
CLI. swift build --help
doesn't help me enough. I don't want to build for macOS, but I keep getting the error:
error: the library 'library_name' requires macos 10.10`, but depends on the product 'library_name_2' which requires macos 10.12; consider changing the library 'library_name' to require macos 10.12 or later, or the product 'library_name_2' to require macos 10.10 or earlier.
I don't have an Xcode project, I am using a Swift Package.
I did notice swift build --build-system
, swift build --toolchain
, swift build --sdk
, but there are no more information about, and which options I can use.