Skip to content

1.0.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@leogdion leogdion released this 26 Nov 15:38
170ac75

What's Changed

  • Update SimulatorServices.yml by @leogdion in #26
  • Add Claude Code GitHub Workflow by @leogdion in #30
  • Breaking: requires Swift 6.4 (swift-tools-version: 6.4, Swift 6 language mode, Xcode 27.2 or later) and macOS 15.4 (was macOS 13; needed for isolated deinit in the FSEvents watcher). The iOS 16 / Mac Catalyst 16 / watchOS 9 / tvOS 16 / visionOS 1 minimums are unchanged. Stay on 1.1.0-beta.3 if you can't move to Swift 6.4 by @leogdion in #29
  • Breaking: typed throws everywhere. SimCtl.run(_:) throws SimCtlError, and Subcommand.parse(_:) / recover(_:) are now throws(SimCtlError); update custom Subcommand conformances to match and wrap other errors in a SimCtlError case. RuntimeID.init(suffix:) and PrefixedDecodableString.init(suffix:) throw DecodingError, and suffix(forString:) throws PrefixMismatchError by @leogdion in #29
  • Breaking: GetAppContainer.Error and List.Error are removed. Catch SimCtlError.unreadableOutput instead of .missingData (a simulator without the app's container) or .deocdingError, and read exitCode, standardError and reason (.invalidDevice, .invalidState, .noMatchingRuntime, .other) for a failed simctl by @leogdion in #29
  • Breaking: commands run through swift-subprocess instead of Process. The public Process.run(till:) extension and ProcessError.timeout are removed; ProcessError gains launchFailed and unreadableOutput, and cancelling the calling task terminates simctl and throws SimCtlError.cancelled by @leogdion in #29
  • Breaking: DeviceState adds booting and shuttingDown, and DeviceTypeID adds the device types Xcode 27 lists (iPhone 18 Pro, iPhone Air, Apple Watch Ultra 4 (49mm), the M5 iPad Pros and more); add the new cases to exhaustive switches by @leogdion in #29
  • Add RuntimeList, RuntimeDelete, DeviceDelete, DeleteUnavailable, Boot, Shutdown and Erase subcommands, and RuntimeImage (with canDelete, RuntimeImageKind and RuntimeImageState) by @leogdion in #29
  • Add SimCtl(developerDirectory:) and SimCtl.find(developerDirectory:), which run simctl from a chosen Xcode via DEVELOPER_DIR (macOS) by @leogdion in #29
  • Add Xcode discovery and resolution: XcodeInstallation, XcodeSnapshot, XcodePreference, XcodeResolution and XcodeLocating, with the live XcodeLocator (macOS) scanning the application folders, Spotlight and xcode-select -p, and streaming new snapshots through FSEvents (or polling) as Xcodes are added, removed or selected by @leogdion in #29
  • Add the SimCtlCommands / SimCtlDeletionCommands seam with LiveSimCtlCommands (macOS), so apps can test their simctl calls against a fake by @leogdion in #29
  • Add SimctlSnapshot (one read of simctl runtime list -j and simctl list -j), SimulatorAttribution (which simulators use which installed runtime) and DirectorySizeMeasurer (macOS) by @leogdion in #29
  • Add version parsing: VersionNumber, BuildNumber, MajorMinorVersion and VersionedBuild, compared numerically rather than as strings by @leogdion in #29
  • Add Device.lastUsedAt and availabilityError, Runtime.availabilityError, RuntimeID.variant and Platform.displayName (xrOS shows as visionOS); the models are Hashable and gain public memberwise initializers by @leogdion in #29
  • Write value mappings as data: RawDefined types are RawMapped with a single BidirectionalMap rawOptions table by @leogdion in #29
  • Fix simctl failing with CancellationError under xcodebuild test: the variables xcodebuild injects (DYLD_*, __XPC_DYLD_*, XCTest*, XCInjectBundle*) are no longer passed to child processes by @leogdion in #29
  • Linux and the non-macOS Apple platforms build the subcommands, models and version parsing; running simctl, xcode-select and mdfind and watching for Xcodes stay macOS-only, and the Subprocess dependency is conditioned to macOS by @leogdion in #29
  • Tests: simctl and Xcode fixtures recorded from Xcode 27.1 and 27.2; the test bundle builds and signs on iOS, watchOS, tvOS and visionOS; macOS-only suites take .enabled(if: Platform.isMacOS) from a new Platform test helper (alongside their #if os(macOS)), and always-true #available(iOS 13.4, *) checks are removed by @leogdion in #29
  • CI: Swift 6.4 Linux lanes (swift:6.4-noble, plus jammy for PRs into main or a semver branch), Apple lanes on the xcode-27 image with Xcode 27.2, CodeQL, unsafe-flags and cache-cleanup workflows, pull_request triggers only; lint tools move from Mint to mise (swift-format 604, SwiftLint 0.65.1, periphery); Codecov and CodeFactor are dropped by @leogdion in #29
  • Add Scripts/docc.sh DocC builds (no swift-docc-plugin dependency), a Makefile, a devcontainer, Swift Package Index docs (.spi.yml) and agent files by @leogdion in #29
  • Dependencies: add swift-subprocess from: "1.0.2" (macOS only); OSVer stays from: "1.0.0"
  • Add the Claude Code GitHub workflow by @leogdion in #30

Full Changelog: 1.1.0-beta.3...1.1.0-beta.4