Skip to content

0.5.0

Choose a tag to compare

@mozharovsky mozharovsky released this 07 Jul 13:01
· 65 commits to main since this release
2361c56

Added

  • A view class for every isa Xcode writes. ExceptionSet splits into BuildFileExceptionSet and BuildPhaseMembershipExceptionSet (with a typed buildPhase() accessor), SwiftPackageReference splits into RemoteSwiftPackageReference (repositoryURL) and LocalSwiftPackageReference (relativePath), and every build phase kind gets its own class: SourcesBuildPhase, FrameworksBuildPhase, ResourcesBuildPhase, HeadersBuildPhase, CopyFilesBuildPhase (dstPath), and ShellScriptBuildPhase (shellScript, shellPath). Code that had to compare object.isa after an is() check now narrows with the specific class alone.
  • Legacy kinds — PBXRezBuildPhase, PBXAppleScriptBuildPhase, and PBXBuildStyle get classes, and buildStyles joins the doctor's reference vocabulary, so decades-old documents validate and traverse typed.
  • Tighter return types across the model: ensureSourcesPhase, ensureFrameworksPhase, ensureResourcesPhase, ensureShellScriptPhase, and embed return their specific phase classes, and the Swift package helpers return RemoteSwiftPackageReference or LocalSwiftPackageReference.

Changed

  • Each view class now declares the single isa it models through static readonly isa (previously a plural isas array), and the view factory registry derives from the class declarations. Behavior-only bases such as Target declare null and never route.

Full Changelog: 0.4.0...0.5.0