Repository navigation
0.10.0
Added
XcodeProject.renameTarget(target, newName)— renames a target and every place the pbxproj knows it by name: the target'snameandproductName, the literalPRODUCT_NAMEsetting, the product file reference (Old.appbecomesNew.app, whatever the extension),remoteInfoon container item proxies pointing at the target by id,TEST_TARGET_NAMEvalues naming it, and the path segments ofTEST_HOSTandBUNDLE_LOADERthat name the target or its product. Names match whole per path segment, so renamingDemoAppnever touchesDemoAppTests, and aPRODUCT_NAMEof$(TARGET_NAME)follows by itself. Renaming to the same name is a true no-op, and a target of another project throwsXcodeModelError. 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, soOld.apprenames whileOldTests.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.xcodeprojdirectory itself, rewritingcontainer:Old.xcodeprojreferences 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