Skip to content

v2.2.0 - DirectoryWatcher compiled for iOS

Latest

Choose a tag to compare

@gsdali gsdali released this 04 Dec 12:39
8c32432

DirectoryWatcher is now compiled on every Darwin platform (#if canImport(Darwin)), where it was macOS only (#98). A package built for iOS can use the type instead of carrying a stand-in. No source line changes but the gate and the comment above it, and nothing changes on macOS.

A minor release because the type is new public API surface on iOS, visionOS and tvOS.

Checked

  • iOS Simulator SDK: xcodebuild -scheme OCCTSwiftIO -destination 'generic/platform=iOS Simulator' build succeeds and the library's object file holds the type's symbols. The test target builds for the same SDK with ARCHS=arm64 ONLY_ACTIVE_ARCH=YES; without that setting it fails at the x86_64 link, on OCCT's own symbols.
  • macOS: the tests and code-style runs on the merged commit passed.

Not checked

  • Nothing ran on iOS: no simulator runtime was installed, so that a watcher on an app's sandboxed container reports a change is an expectation from the API's availability, not a result.
  • tvOS and visionOS were not compiled. The build stops at OCCT's xcframework, which has no slice for their Simulator SDKs, so the package does not build there with or without this release.
  • The descriptor-leak test lists /dev/fd and stays macOS only; whether an app can list /dev/fd was not checked.

Full entry: docs/CHANGELOG.md.