Skip to content

Releases

2.49.0

Choose a tag to compare

@yonaskolb yonaskolb released this 25 Nov 22:53
45ad520

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 like buildphase in a source entry. Generation still succeeds. Keys starting with x- are not reported, so they can hold YAML anchors #1673 @yonaskolb

Changed

  • requiresObjCLinking now defaults to true for static frameworks (framework.static, or framework with MACH_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, set requiresObjCLinking: false on those frameworks #1674 @toyeshhm

2.48.0

Choose a tag to compare

@yonaskolb yonaskolb released this 19 Nov 12:41
62a1f68

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.0

Choose a tag to compare

@yonaskolb yonaskolb released this 17 Nov 13:45
8f1f80b

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.0

Choose a tag to compare

@yonaskolb yonaskolb released this 16 Jul 06:43

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 MACH_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. Set embed: false on the dependency to keep the previous behaviour #1628 @daltonclaybrook

Internal

2.45.4

Choose a tag to compare

@yonaskolb yonaskolb released this 14 Apr 13:23

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

Choose a tag to compare

@yonaskolb yonaskolb released this 10 Mar 13:50

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.2

Choose a tag to compare

@yonaskolb yonaskolb released this 05 Mar 11:16

Fixed

  • Validate empty source paths to prevent project root inclusion #1601 @yonaskolb
  • Fix missing productRefGroup in generated projects #1591 @ruslic19

2.45.1

Choose a tag to compare

@yonaskolb yonaskolb released this 05 Mar 05:50

Added

2.45.0

Choose a tag to compare

@yonaskolb yonaskolb released this 05 Mar 03:01

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

2.44.1

Choose a tag to compare

@yonaskolb yonaskolb released this 22 Jul 09:32

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