Skip to content

0.10.0

Choose a tag to compare

@mozharovsky mozharovsky released this 10 Jul 20:11
· 30 commits to main since this release
2536120

Added

  • XcodeProject.renameTarget(target, newName) — renames a target and every place the pbxproj knows it by name: the target's name and productName, the literal PRODUCT_NAME setting, the product file reference (Old.app becomes New.app, whatever the extension), remoteInfo on container item proxies pointing at the target by id, TEST_TARGET_NAME values naming it, and the path segments of TEST_HOST and BUNDLE_LOADER that name the target or its product. Names match whole per path segment, so renaming DemoApp never touches DemoAppTests, and a PRODUCT_NAME of $(TARGET_NAME) follows by itself. Renaming to the same name is a true no-op, and a target of another project throws XcodeModelError. File-system renames (source folders, entitlements files) stay with the caller.
  • Xcscheme.renameTarget(oldName, newName) — the scheme-file counterpart. Blueprint names match whole and buildable names match by stem, so Old.app renames while OldTests.xctest, a different target's product, stays untouched. Returns whether anything changed, so callers can skip rewriting untouched files.
  • Xcscheme.renameContainer(oldProjectName, newProjectName) — follows a rename of the .xcodeproj directory itself, rewriting container:Old.xcodeproj references across every buildable reference. Returns whether anything changed.
  • The corpus sweep gained a rename probe — every parsed project with an app target renames to a probe name and back, with byte-stable fixed-point checks after each step.

Changed

  • Every comment, JSDoc, and doc in the repository rewritten as plain flowing prose. No code changes, and parse and build benchmarks are unchanged.

Full Changelog: 0.9.0...0.10.0