Repository navigation
Releases
Releases Β· yonaskolb/XcodeGen
2.49.0
Added
- Spec keys that XcodeGen doesn't recognise are now reported as warnings with their path, at every level of the spec, instead of being silently ignored. For example
Warning: Unknown key "resources" in targets.App will be ignored, or a typo likebuildphasein a source entry. Generation still succeeds. Keys starting withx-are not reported, so they can hold YAML anchors #1673 @yonaskolb
Changed
requiresObjCLinkingnow defaults totruefor static frameworks (framework.static, orframeworkwithMACH_O_TYPE: staticlib), including targets from project references, so apps linking them get-ObjC. If this causes duplicate symbol errors or larger binaries, for example when several static frameworks share a package with Objective-C code like Firebase, setrequiresObjCLinking: falseon those frameworks #1674 @toyeshhm
2.48.0
Added
- Added experimental support for Xcode 27.2's JSON project file format. Set
options.projectFileFormat: xcprojto writeproject.xcprojinstead ofproject.pbxproj. It requires Xcode 27 or later and defaultsprojectFormattoxcode27_0. Some custom project and targetattributescan't be stored in this format and are left out #1669 @4brunu
Changed
- XcodeGen now requires macOS 14 and Swift 6.1 to build and run, due to the XcodeProj 9.17.8 update #1669 @4brunu
Fixed
- Fix files without a build phase, such as
README,LICENSEand.gitkeep, being copied into the bundle fromsyncedFoldersources. They are now added to the synced folder's membership exceptions, and.DS_Storefiles are no longer listed there #1668 @4brunu - Fix
configFilesinside asyncedFoldergetting a random reference ID on every generation. They now reference the synced folder plus a relative path, like Xcode does. Also fixes detecting these files when using--projectwith a different directory, and for folders whose name has an extension #1670 @4brunu - Fix a file, group or
syncedFolderused by several targets under different customgroups being added to every group, which Xcode 27.2 refuses to open. It now stays under the first group. Agroupsource with a customgroupalso no longer gets added to intermediate groups whencreateIntermediateGroupsis on #1672 @blastmann
Internal
- Fix
make archiveproducing an emptyxcodegen.artifactbundle.zipwith Swift 6.4, which moved the universal build folder.make archivenow also fails if the bundle is missing the binary #1671 @yonaskolb
2.47.0
Added
- Added support for input files in build rules #1650 @GtechGovind
- Added
buildArchitecturesto scheme build options and target schemes, to control Xcode's "Override Architectures" scheme setting #1642 @arhxam - Added FAQ documentation on how to add an Xcode capability, such as In-App Purchase #1644 @Hokila
- Added
xcode26_3projectFormatoption for the Xcode 26.3 project format (objectVersion = 100) #1648 @Raymondriter - Added
xcode27_0projectFormatoption for the Xcode 27.0 project format (objectVersion = 110) #1658 @yonaskolb
Changed
- Generated schemes now default to
buildArchitectures: matchRunDestination("Match Run Destination"), matching Xcode's default for new schemes. Previously schemes used each target's architecture settings. SetbuildArchitectures: useTargetSettingsto keep the previous behaviour #1642 @yonaskolb - The default
xcodeVersionis now16.0(previously14.3), which setsLastUpgradeCheckin generated projects andLastUpgradeVersionin generated schemes. Setoptions.xcodeVersionto keep the previous value #1658 @yonaskolb - An unknown
options.projectFormatvalue is now a spec validation error listing the valid values, instead of silently falling back to the default format #1658 @yonaskolb
Fixed
- Fix
syncedFoldersource paths being relative to the spec directory instead of the project directory when they differ, which caused Xcode to treat the synced folder as empty #1636 @Ckitakishi - Fix
destinationFiltersandinferDestinationFiltersByPathbeing ignored forsyncedFoldersources. They are now written asplatformFiltersByRelativePathon the synced folder's exception set #1647 @anandghegde - Fix localized files in
syncedFoldersources ignoringincludes/excludes, which leaked them into every target syncing the folder. Membership exceptions now use Xcode's/Localized:variant group form #1633 #1647 @AlexNsbmr @anandghegde - Fix nested target attributes (e.g.
attributes.SystemCapabilities) being serialized as a stringified SwiftDictionarydescription instead of a proper nested plist dictionary, which also caused non-deterministic key ordering in generatedproject.pbxprojfiles across runs #1639 @imadaan @sergeyospanov - Fix
.DS_Storeand.origfiles causing projects to be regenerated when using--use-cache#1622 @kimjune01 - Fix generated "Copy Bundle Resources" phases missing
dstPath, which caused Xcode 27.2 project conversion to fail #1654 @Ckitakishi - Fix
syncedFoldertarget membership including files that shouldn't be in the target: default ignored files such as.DS_Storeare now excluded, as are files with no build phase such as.xcconfigand.entitlements#1618 @4brunu - Fix file elements being added to both the main group and another group, which prevented Xcode 27.2 from opening the generated project. Subdirectory groups of a source that points at the spec directory now appear under that source's group instead of at the project root #1652 @Ckitakishi
- Fix
make installfailing on Linux by only passing--arch arm64 --arch x86_64when building on macOS #1665 @vintoware - Fix
xcodegen generatehanging whencreateIntermediateGroupsis enabled and a source's only common ancestor with the project is the file system root, such as an absolute path like/usr/bin/xcrun#1659 @ybai08 - Fix per-platform
deploymentTargetvalues being ignored on targets usingsupportedDestinations#1641 @arhxam
Internal
- Use a dedicated local package in the SPM fixture so generated fixtures don't depend on the checkout directory name, such as when running tests from a git worktree @yonaskolb
- Fix a Swift Testing error matcher that failed on Linux CI #1657 @yonaskolb
- Skip performance tests on Linux CI, where XCTest's variance check made them flaky #1667 @yonaskolb
2.46.0
Added
- Added support for Swift package
traitson remote and local package references, so generated projects preserve the configured trait selections #1629 @philprime
Changed
- Targets in the generated project now follow the declaration order from the source spec (Xcode sidebar,
xcodebuild -listoutput). Previously they were always sorted alphabetically. Applies to both YAML and JSON specs. Declaration order is now also preserved for targets whoseplatform/namecome from a target template and for targets whose key is a${VARIABLE}. #1619 @mirkokg - Static frameworks (
type: framework.static, ortype: frameworkwithMACH_O_TYPE: staticlib) are now embedded by default in dependent applications and test targets, the same as dynamic frameworks. Xcode 15 and later strips the static binary from the embedded copy while keeping the framework's resources. Setembed: falseon the dependency to keep the previous behaviour #1628 @daltonclaybrook
Internal
- Update to XcodeProj 9.14.0 #1629 @philprime
2.45.4
Fixed
- Fix makePathRelative using wrong base path when projectDirectory differs #1608 @yonaskolb
- Fix synced folder configFiles creating duplicate groups #1607 @AlexNsbmr
- Fix synced folder root group duplication for paths referenced by multiple targets #1607 @AlexNsbmr
- Fix synced folder directory-level membershipExceptions not working #1607 @AlexNsbmr
2.45.3
2.45.2
2.45.1
2.45.0
Added
- Added ability to specify project format version via
projectFormatoption #1566 @anivaros - Added
explicitFoldersproperty toTargetSourcethat is passed through toPBXFileSystemSynchronizedRootGroup, to turn entire subfolders into Resources #1596 @macguru - Allow synced folders to be sorted using
groupOrdering#1596 @macguru - Added
excludessupport forsyncedFoldersources with glob pattern matching #1587 @mirkokg - Automatically exclude
Info.plistfrom synced folder membership when it's within the synced folder #1587 @mirkokg - Add empty copy resources build phase for synced folders so resources are copied correctly #1587 @mirkokg
Fixed
- Fixed synced folders ignoring
createIntermediateGroups=YESand always being created at the root level #1596 @macguru - Fix membership exceptions not working for nested synced folders with intermediate groups enabled #1596 @macguru
- Fix
supportedDestinationspresets being injected whensettingPresetsisnone#1599 @macguru
Internal
- Update to XcodeProj 9.10.1 #1597 @yonaskolb
- Fix CI: add explicit xcodebuild destinations and update Xcode matrix #1594 @yonaskolb
- Update ArtifactBundleGen to 0.0.8 #1570 @georgenavarro
2.44.1
Fixed
- Set the correct object version of 77 for Xcode 16 projects @jakobfelsatdm #1563
- Support major.minor SPM package versions which would otherwise fail to decode to a string in yaml specs #1546 @RomanPodymov
- Fix regression for
parallelizablein scheme. It now resolves to "Enabled" and not "Swift Testing Only" #1565 @CraigSiemens