Skip to content

v1.0.5 — iOS platform support

Latest

Choose a tag to compare

@gsdali gsdali released this 15 Jun 23:12
5228e7c

iOS platform support (closes #52)

Declares .iOS(.v18) in the package so the library products — DrawingComposer and ScriptHarness — link into downstream iOS apps (e.g. a SwiftUI app deploying to iPhone). Previously SPM assumed iOS 12 for these targets, so any iOS app pulling them failed resolution against OCCTSwift's iOS-15 floor. v18 matches the sibling cohort (Viewport/Tools/AIS are .iOS(.v18)).

Also in this release

  • ScriptContext output-directory selection is now platform-guarded. macOS behaviour is unchanged (iCloud Drive if present, else ~/.occtswift-scripts/output); iOS writes into the app sandbox's Documents directory, since homeDirectoryForCurrentUser and the ~/Library/Mobile Documents iCloud path are unavailable in the iOS sandbox.

Scope

Library products only. The executable targets (occtkit, Script, legacy Graph*) shell out via Foundation.Process and remain macOS-only — SPM never pulls them into an iOS app that links a library product.

Verified

  • xcodebuild -destination 'generic/platform=iOS' builds both DrawingComposer and ScriptHarness (arm64-apple-ios18.0).
  • swift build on macOS still links all executables.

Downstream consumers can now move their pin to from: "1.0.5".