2.48.02026-11-19
Added
- Added experimental support for Xcode 27.2's JSON project file format. Set options.projectFileFormat: xcproj to write project.xcproj instead of project.pbxproj. It requires Xcode 27 or later and defaults projectFormat to xcode27_0. Some custom project and target attributes can'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, LICENSE and .gitkeep, being copied into the bundle from syncedFolder sources. They are now added to the synced folder's membership exceptions, and .DS_Store files are no longer listed there #1668 @4brunu
- Fix configFiles inside a syncedFolder getting 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 --project with a different directory, and for folders whose name has an extension #1670 @4brunu
- Fix a file, group or syncedFolder used by several targets under different custom groups being added to every group, which Xcode 27.2 refuses to open. It now stays under the first group. A group source with a custom group also no longer gets added to intermediate groups when createIntermediateGroups is on #1672 @blastmann
Internal
- Fix make archive producing an empty xcodegen.artifactbundle.zip with Swift 6.4, which moved the universal build folder. make archive now also fails if the bundle is missing the binary #1671 @yonaskolb
2.47.02026-11-17
Added
- Added support for input files in build rules #1650 @GtechGovind
- Added buildArchitectures to 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_3 projectFormat option for the Xcode 26.3 project format (objectVersion = 100) #1648 @Raymondriter
- Added xcode27_0 projectFormat option 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. Set buildArchitectures: useTargetSettings to keep the previous behaviour #1642 @yonaskolb
- The default xcodeVersion is now 16.0 (previously 14.3), which sets LastUpgradeCheck in generated projects and LastUpgradeVersion in generated schemes. Set options.xcodeVersion to keep the previous value #1658 @yonaskolb
- An unknown options.projectFormat value is now a spec validation error listing the valid values, instead of silently falling back to the default format #1658 @yonaskolb
Fixed
- Fix syncedFolder source 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 destinationFilters and inferDestinationFiltersByPath being ignored for syncedFolder sources. They are now written as platformFiltersByRelativePath on the synced folder's exception set #1647 @anandghegde
- Fix localized files in syncedFolder sources ignoring includes/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 Swift Dictionary description instead of a proper nested plist dictionary, which also caused non-deterministic key ordering in generated project.pbxproj files across runs #1639 @imadaan @sergeyospanov
- Fix .DS_Store and .orig files 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 syncedFolder target membership including files that shouldn't be in the target: default ignored files such as .DS_Store are now excluded, as are files with no build phase such as .xcconfig and .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 install failing on Linux by only passing --arch arm64 --arch x86_64 when building on macOS #1665 @vintoware
- Fix xcodegen generate hanging when createIntermediateGroups is 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 deploymentTarget values being ignored on targets using supportedDestinations #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.02026-07-16
Added
- Added support for Swift package traits on 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 -list output). Previously they were always sorted alphabetically. Applies to both YAML and JSON specs. Declaration order is now also preserved for targets whose platform/name come from a target template and for targets whose key is a ${VARIABLE}. #1619 @mirkokg
- Static frameworks (type: framework.static, or type: framework with MACHOTYPE: 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. Set embed: false on the dependency to keep the previous behaviour #1628 @daltonclaybrook
Internal
- Update to XcodeProj 9.14.0 #1629 @philprime
2.45.42026-04-14
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.32026-03-10
Fixed
- Fix folder source PBXFileReference path regression with createIntermediateGroups #1605 @yonaskolb
- Fix synced folders: includes silently ignored + no deduplication across targets #1604 @4brunu
2.45.22026-03-05
Fixed
- Validate empty source paths to prevent project root inclusion #1601 @yonaskolb
- Fix missing productRefGroup in generated projects #1591 @ruslic19
2.45.12026-03-05
Added
- Added built in .icon folder support for IconComposer #1600 @yonaskolb
2.45.02026-03-05
Added
- Added ability to specify project format version via projectFormat option #1566 @anivaros
- Added explicitFolders property to TargetSource that is passed through to PBXFileSystemSynchronizedRootGroup, to turn entire subfolders into Resources #1596 @macguru
- Allow synced folders to be sorted using groupOrdering #1596 @macguru
- Added excludes support for syncedFolder sources with glob pattern matching #1587 @mirkokg
- Automatically exclude Info.plist from 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=YES and 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 supportedDestinations presets being injected when settingPresets is none #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.12025-07-22
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 parallelizable in scheme. It now resolves to "Enabled" and not "Swift Testing Only" #1565 @CraigSiemens
2.44.02025-07-17
Added
- Basic support for Xcode 16's synchronized folders #1541 @yonaskolb
- TargetSource.type can now be syncedFolder
- Options.defaultSourceDirectoryType can be set to syncedFolder for the default type in all sources in the project (defaults to group)
- Benefits include faster generation and no cache invalidation or need to regenerate when files are added or removed from these folders
- Note that not all TargetSource options like excludes are supported, just a simple path. Please test and see what is missing in your projects
- Added sanitizer options to run and test actions in Scheme #1550 @hi-kumar
Fixed
- Added validation to ensure that all values in settings.configs are mappings. Previously, passing non-mapping values did not raise an error, making it difficult to detect misconfigurations. Now, SpecParsingError.invalidConfigsMappingFormat is thrown if misused. #1547 @Ryu0118
- Use USER instead of LOGNAME for XCUserData #1559 @KostyaSha