Swiftpack.co - Package - yonaskolb/XcodeGen

XcodeGen

Swift Package Manager

XcodeGen

XcodeGen is a command line tool written in Swift that generates your Xcode project using your folder structure and a project spec.

The project spec is a YAML or JSON file that defines your targets, configurations, schemes, custom build settings and many other options. All your source directories are automatically parsed and referenced appropriately while preserving your folder structure. Sensible defaults are used in many places, so you only need to customize what is needed. Very complex projects can also be defined using more advanced features.

  • ✅ Generate projects on demand and remove your .xcodeproj from git, which means no more merge conflicts!
  • ✅ Groups and files in Xcode are always synced to your directories on disk
  • ✅ Easy configuration of projects which is human readable and git friendly
  • ✅ Easily copy and paste files and directories without having to edit anything in Xcode
  • ✅ Share build settings across multiple targets with build setting groups
  • ✅ Automatically generate Schemes for different environments like test and production
  • ✅ Easily create new projects with complicated setups on demand without messing around with Xcode
  • ✅ Generate from anywhere including on CI
  • ✅ Distribute your spec amongst multiple files for easy sharing and overriding
  • ✅ Easily create multi-platform frameworks
  • ✅ Integrate Carthage frameworks without any work

Given a very simple project spec file like this:

name: MyProject
options:
  bundleIdPrefix: com.myapp
packages:
  Yams:
    url: https://github.com/jpsim/Yams
    from: 2.0.0
targets:
  MyApp:
    type: application
    platform: iOS
    deploymentTarget: "10.0"
    sources: [MyApp]
    settings:
      configs:
        debug:
          CUSTOM_BUILD_SETTING: my_debug_value
        release:
          CUSTOM_BUILD_SETTING: my_release_value
    dependencies:
      - target: MyFramework
      - carthage: Alamofire
      - framework: Vendor/MyFramework.framework
      - sdk: Contacts.framework
      - sdk: libc++.tbd
      - package: Yams
  MyFramework:
    type: framework
    platform: iOS
    sources: [MyFramework]

A project would be created with 2 connected targets, with all the required configurations and build settings. See the Project Spec documentation for all the options you can specify, and Usage for more general documentation.

Installing

Make sure Xcode 11 is installed first.

Mint

mint install yonaskolb/xcodegen

Make

git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
make install

Homebrew

brew install xcodegen

Swift Package Manager

Use as CLI

git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
swift run xcodegen

Use as dependency

Add the following to your Package.swift file's dependencies:

.package(url: "https://github.com/yonaskolb/XcodeGen.git", from: "2.11.0"),

And then import wherever needed: import XcodeGenKit

Usage

Simply run:

xcodegen generate

This will look for a project spec in the current directory called project.yml and generate an Xcode project with the name defined in the spec.

Options:

  • --spec: An optional path to a .yml or .json project spec. Defaults to project.yml
  • --project: An optional path to a directory where the project will be generated. By default this is the directory the spec lives in.
  • --quiet: Suppress informational and success messages.
  • --use-cache: Used to prevent unnecessarily generating the project. If this is set, then a cache file will be written to when a project is generated. If xcodegen is later run but the spec and all the files it contains are the same, the project won't be generated.
  • --cache-path: A custom path to use for your cache file. This defaults to ~/.xcodegen/cache/{PROJECT_SPEC_PATH_HASH}

There are other commands as well. Use xcodegen help to see more detailed usage information.

Editing

git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
swift package generate-xcodeproj

This use Swift Project Manager to create an xcodeproj file that you can open, edit and run in Xcode, which makes editing any code easier.

If you want to pass any required arguments when running in Xcode, you can edit the scheme to include launch arguments.

Documentation

  • See Project Spec documentation for all the various properties and options that can be set
  • See Usage for more specific usage and use case documentation
  • See FAQ for a list of some frequently asked questions
  • See Examples for some real world XcodeGen project specs out in the wild

Attributions

This tool is powered by:

Inspiration for this tool came from:

Contributions

Pull requests and issues are always welcome. Please open any issues and PRs for bugs, features, or documentation.

License

XcodeGen is licensed under the MIT license. See LICENSE for more info.

Github

link
Stars: 3068

Used By

Total: 0

Releases

2.11.0 - 2019-12-03 12:01:42

Added

  • Add Carthage static framework dependencies support. #688 @giginet
  • Added xcodegen dump command #710 @yonaskolb
  • Added --no-env option to disable environment variables expansion #704 @rcari
  • Added custom group support for target sources #621 @sroebert @rcari

Fixed

  • Improved variable expansion runtime #704 @rcari
  • Fixed missing headers for static framework targets #705 @wag-miles
  • Using more file types from XcodeProj for PBXFileReferences resulting in less project diffs #715 @yonaskolb
  • Fixed localized *.intentdefinition not being added to build source phases #720 @giginet
  • Fixed selectedLauncherIdentifier not being set Xcode.IDEFoundation.Launcher.PosixSpawn when debugEnabled: false is defined in test action #725 @ken0nek
  • Fixed unnecessary dependencies related to SwiftPM #726 @tid-kijyun

Changed

  • Deprecated $old_form variables in favor of ${new_form} variables #704 @rcari
  • Updated XcodeProj to 7.4.0 #709 #715 @yonaskolb
  • Updated to Swift 5.1 #714 @yonaskolb

Commits

2.10.1 - 2019-10-31 23:12:09

Fixed

  • Add Base to knownRegions even if one doesn't exist #694 @bryansum
  • Fixed missing onlyGenerateCoverageForSpecifiedTargets issue #700 @kateinoigakukun
  • Fixed regression on dependencies link flag #703 @rcari

Commits

2.10.0 - 2019-10-27 12:28:20

Added

  • Support Target Reference to another project. #655 @kateinoigakukun
  • Added coverageTargets for test target. This enables to gather code coverage for specific targets. #656 @kateinoigakukun

Fixed

  • Add base localisation by default even if no base localised files were found. Fixes warning in Xcode 11 #685 @yonaskolb
  • Don't generate CFBundleExecutable in default generated Info.plist for bundle target types #689 @FranzBusch
  • Fixed resolving relative paths with custom project destination #681 @giginet
  • Fixed resolving relative paths for Info.plist #683
  • Fixed macOS unit test target TEST_HOST #696 @mjarvis

Internal

  • Restructure targets #698 @yonaskolb

Commits

2.9.0 - 2019-10-14 10:23:11

Added

  • Added Scheme Templates #672 @bclymer

Fixed

  • Fixed macOS unit test setting preset #665 @yonaskolb
  • Add rcproject files to sources build phase instead of resources #669 @Qusic
  • Prefer default configuration names for generated schemes #673 @giginet
  • Fixed some resource files being placed to "Recovered References" group #679 @nivanchikov

Internal

  • Updated to SwiftCLI 5.3.2 #667 @giginet
  • Fixed tests in case-sensitive file system #670 @Qusic

Commits

2.8.0 - 2019-09-28 06:20:08

Added

  • Added support for Swift Package dependencies #624 @yonaskolb
  • Added includes to sources for a Target. This follows the same glob-style as excludes but functions as a way to only include files that match a specified pattern. Useful if you only want a certain file type, for example specifying **/*.swift. #637 @bclymer
  • Support dylib SDK. #650 @kateinoigakukun
  • Added language and region options for run and test scheme #654 @kateinoigakukun
  • Added debugEnabled option for run and test scheme #657 @kateinoigakukun

Fixed

  • Expand template variable in Array of Any #651 @kateinoigakukun
  • Significantly improve performance when running with a large number files. #658 @kateinoigakukun
  • Removed some more diffs between the generated .pbxproj and when Xcode resaves it #663 @yonaskolb

Internal

  • Removed needless Array initialization. #661 @RomanPodymov
  • Updated to XcodeProj 7.1.0 #624 @yonaskolb

Commits

2.7.0 - 2019-09-01 12:13:39

Added

  • Added Bash 4 style recursive globbing (**/*) in target sources excludes #636 @bclymer
  • Added ability to disable main thread checker in Schemes #601 @wag-miles

Fixed

  • Fixed included specs that were referenced multiple times from duplicating content #599 @haritowa
  • Fixed .orig files being added to the project #627 @keith

Changed

  • Allow linking of dependencies into static libraries when link is set to true #635 @kateinoigakukun

Commits

2.6.0 - 2019-06-28 07:03:02

Added

  • Added ability to skip tests #582 @kadarandras
  • Added ability to set attributes on build files #583 @min
  • Allow using environment variables in the form of ${SOME_VARIABLE}. This might be a breaking change when a target template attribute is also defined as an environment variable #594 @tomquist
  • Added support for watchapp2-container and framework.static product types #604 @yonaskolb

Fixed

  • Fixed .pch files being bundled as resources #597 @thii
  • Fixed an issue that prevents watchOS Intents Extension from running correctly. #571 @KhaosT

Changed

  • Updated the default compatibilityVersion project setting from Xcode 9.3 to Xcode 10.0 #581 @acecilia
  • Updated to XcodeProj 7.0.0. Note that the length of generated UUIDs has changed #604 @yonaskolb

Internal

  • Added ability to encode ProjectSpec #545 @ryohey

Commits

2.5.0 - 2019-04-09 12:32:07

Added

  • Added support for app-extension.intents-service target type #536 @yonaskolb
  • Added support for custom root in sdk dependency #562 @raptorxcz

Changed

  • Updated to xcodeproj 6.7.0 including its performance improvements #536 @yonaskolb
  • Updated default generated settings for Xcode 10.2 #555 @yonaskolb
  • Changed order of file generation so that plists are now generated before the project, so they will be included in the projects files #544 @tomquist
  • Updated Yams to 2.0.0 @yonaskolb

Fixed

  • Fixed groups from sources outside a project spec's directory from being flattened. #550 @sroebert
  • Fixed optional file sources not being added to the project #557 @yonaskolb
  • Fixed Carthage dependencies being incorrectly embedded in WatchKit app bundles instead of a WatchKit app extension #558 @KhaosT

Commits

2.4.0 - 2019-03-31 11:00:49

Fixed:

  • Fixed installation when building in Swift 5 #549 @yonaskolb

Changed

  • Updated to Swift 5 and dropped Swift 4.2 #549 @yonaskolb

Commits

2.3.0 - 2019-03-25 10:15:59

Added

  • Added ability to automatically find all the frameworks for Carthage dependencies via the global options.findCarthageFrameworks or dependency specfic dependency.findFrameworks. See the Carthage usage docs for more info #506 #543 @rpassis @yonaskolb
  • Added support for nested target templates #534 @tomquist
  • Added ability to define templateAttributes within a target to be able to parameterize templates. #533 @tomquist
  • Added ability to set link to false in framework dependencies #532 @dimatosaurus
  • Added missingConfigFiles to options.disabledValidations to optionally skip checking for the existence of config files.
  • Added ability to define a per-platform deploymentTarget for Multi-Platform targets. #510 @ainopara

Changed

  • DEPRECATION: Placeholders $target_name and $platform have been deprecated in favour of ${target_name} and ${platform}. Support for the old placeholders will be removed in a future version #533 @tomquist

Fixed

  • Sources outside a project spec's directory will be correctly referenced as relative paths in the project file. #524 @elliottwilliams
  • Fixed error when optional path is missing #527 @yonaskolb
  • Fixed excludes within included spec #535 @yonaskolb
  • Fixed paths in target templates within included files not being relative #537 @yonaskolb
  • Fix multi-platform target templates #541 @yonaskolb
  • Fixed sources in an included target not being relative when the sources are mix of string and dictionaries #542 @yonaskolb

Commits

2.2.0 - 2019-01-28 11:21:08

Added

  • Added ability to generate empty directories via options.generateEmptyDirectories #480 @Beniamiiin
  • Added support for the instrumentsPackage product type #482 @ksulliva
  • Added support for inputFileLists and outputFileLists within project build scripts #500 @lukewakeford
  • Added support for a $target_name replacement string within target templates #504 @yonaskolb
  • Added createIntermediateGroups to individual Target Sources which overrides the top level option #505 @yonaskolb

Changed

  • BREAKING: All the paths within include files are now relative to that file and not the root spec. This can be disabled with a relativePaths: false on the include. See the documentation for more details #489 @ellneal
  • Updated the Xcode compatibility version from 3.2 to 9.3 #497 @yonaskolb
  • Exact matches to config names in build settings won't partial apply to other configs #503 @yonaskolb
  • UUIDs in the project are standard and don't contain any type prefixes anymore

Fixed

  • Fixed --project argument not taking effect #487 @monowerker
  • Fixed Sticker Packs from generating an empty Source file phase which caused in error in the new build system #492 @rpassis
  • Fixed generated schemes for tool targets not setting the executable #496 @yonaskolb
  • Fixed resolving Carthage dependencies for iOS app with watchOS target. 465 @raptorxcz

Commits

2.1.0 - 2018-12-18 11:42:34

Added

  • Added an experiment new caching feature. Pass --use-cache to opt in. This will read and write from a cache file to prevent unnecessarily generating the project. Give it a try as it may become the default in a future release #412 @yonaskolb

Changed

  • Changed spelling of build phases to preBuildPhase and postBuildPhase. The older names are deprecated but still work #402 @brentleyjones
  • Moved generation to a specific subcommand xcodegen generate. Simple xcodegen will continue to work for now #437 @yonaskolb
  • If INFOPLIST_FILE has been set on a target, then an info path won't ovewrite it #443 @feischl97

Fixed

  • Fixed XPC Service package type in generated Info.plist #435 @alvarhansen
  • Fixed phase ordering for modulemap and static libary header Copy File phases. 402 @brentleyjones
  • Fixed intermittent errors when running multiple xcodegens concurrently #450 @bryansum
  • Fixed --project argument not working #437 @yonaskolb
  • Fixed unit tests not hooking up to host applications properly by default. They now generate a TEST_HOST and a TestTargetID #452 @yonaskolb
  • Fixed static libraries not including external frameworks in their search paths #454 @brentleyjones
  • Add .intentdefinition files to sources build phase instead of resources #442 @yonaskolb
  • Add mlmodel files to sources build phase instead of resources #457 @dwb357

Commits

2.0.0 - 2018-11-04 11:58:21

Added

  • Added weak linking setting for dependencies #411 @alvarhansen
  • Added info to targets for generating an Info.plist #415 @yonaskolb
  • Added entitlements to targets for generating an .entitlement file #415 @yonaskolb
  • Added sdk dependency type for linking system frameworks and libs #430 @yonaskolb
  • Added parallelizable and randomExecutionOrder to Scheme test targets in an expanded form #434 @yonaskolb
  • Validate incorrect config setting definitions #431 @yonaskolb
  • Automatically set project SDKROOT if there is only a single platform within the project #433 @yonaskolb

Changed

  • Performance improvements for large projects #388 #417 #416 @yonaskolb @kastiglione
  • Upgraded to xcodeproj 6 #388 @yonaskolb
  • Upgraded to Swift 4.2 #388 @yonaskolb
  • Remove iOS codesigning sdk restriction in setting preset #414 @yonaskolb
  • Changed default project version to Xcode 10.0 and default Swift version to 4.2 #423 @yonaskolb
  • Added ability to not link Carthage frameworks #432 @yonaskolb

Fixed

  • Fixed code signing issues #414 @yonaskolb
  • Fixed TargetSource.headerVisibility not being set in initializer #419 @jerrymarino
  • Fixed crash when using Xcode Legacy targets as dependencies #427 @dflems

Commits

1.11.2 - 2018-09-19 11:15:16

If XcodeGen is compiled with Swift 4.2, then UUID's in the generated project will not be deterministic. This will be fixed in an upcoming release with an update to xcodeproj 6.0

Fixed

  • Fixed release builds in Swift 4.2 404 @pepibumur
  • Fixed default settings for macOS unit-tests 387 @frankdilo
  • Fixed Copy Headers phase ordering for Xcode 10 401 @brentleyjones
  • Fixed generated schemes on aggregate targets 394 @vgorloff

Changed

  • Added en as default value for knownRegions 390 @Saik0s
  • Update PathKit, Spectre, Yams and xcodeproj dependencies

Commits

1.11.1 - 2018-08-22 14:48:28

Fixed

  • Fixed FRAMEWORK_SEARCH_PATHS for framework dependency paths with spaces 382 @brentleyjones
  • Fixed aggregate targets not being found with transitivelyLinkDependencies 383 @brentleyjones

Commits

1.11.0 - 2018-08-19 04:25:02

Added

  • Added showEnvVars to build scripts to disable printing the environment 351 @keith
  • Added requiresObjCLinking to target 354 @brentleyjones
  • Added targetTemplates 355 @yonaskolb
  • Added aggregateTargets 353 381 @yonaskolb
  • Added options.groupSortPosition 356 @yonaskolb
  • Added ability to specify copyFiles build phase for sources 345 @brentleyjones
  • Added ability to specify a minimumXcodeGenVersion 349 @brentleyjones
  • Added customArchiveName and revealArchiveInOrganizer to archive 367 @sxua

Fixed

  • Sort files using localizedStandardCompare 341 @rohitpal440
  • Use the latest xcdatamodel when sorted by version 341 @rohitpal440
  • Fixed compiler flags being set on non source files in mixed build phase target sources 347 @brentleyjones
  • Fixed options.xcodeVersion not being parsed 348 @brentleyjones
  • Fixed non-application targets using carthage copy-frameworks 361 @brentleyjones
  • Set xcdatamodel based on xccurrentversion if available 364 @rpassis
  • XPC Services are now correctly copied 368 @brentley
  • Fixed .metal files being added to resources 380 @vgorloff

Changed

  • Improved linking for static.library targets 352 @brentleyjones
  • Changed default group sorting to be after files 356 @yonaskolb
  • Moved Frameworks and Products top level groups to bottom 356 @yonaskolb
  • modulemap files are automatically copied to the products directory for static library targets 346 @brentleyjones
  • Public header files are automatically copied to the products directory for static library targets 365 @brentleyjones
  • Swift Objective-C Interface Header files are automatically copied to the products directory for static library targets 366 @brentleyjones
  • FRAMEWORK_SEARCH_PATHS are adjusted for framework dependencies 373 @brentley
  • library.static targets have SKIP_INSTALL set to YES 358 @brentley
  • Copy files phases have descriptive names 360 @brentley

Internal

  • Moved brew formula to homebrew core
  • Added CONTRIBUTING.md

Commits

1.10.3 - 2018-07-11 10:23:02

Fixed

  • Fixed Mint installations finding SettingPresets 338 @yonaskolb

Commits

1.10.2 - 2018-07-05 14:09:30

Changed

  • Set transitivelyLinkDependencies to false by default

Commits

1.10.1 - 2018-07-04 02:25:01

Fixed

  • Fixed transitivelyLinkDependencies typo 332 @brentleyjones
  • Fixed framework target dependencies not being code signed by default 332 @yonaskolb

Changed

  • Code sign all dependencies by default except target executables 332 @yonaskolb

Commits

1.10.0 - 2018-07-03 11:46:54

Added

  • Added build rule support 306 @yonaskolb
  • Added support for frameworks in sources 308 @keith
  • Added ability to automatically embed transient dependencies. Controlled with transitivelyLinkDependencies 327 @brentleyjones

Changed

  • Upgraded to Swift 4.1
  • Improved Carthage dependency lookup performance with many targets 298 @keith
  • By default don't CodeSignOnCopy target dependencies. This can still be controlled with Dependency.codeSign 324 @yonaskolb

Fixed

  • Fixed PBXBuildFile and PBXFileReference being incorrectly generated for Legacy targets 296 @sascha
  • Fixed required sources build phase not being generated if there are no sources 307 @yonaskolb
  • Fixed install script in binary release 303 @alvarhansen
  • Removed ENABLE_TESTABILITY from framework setting presets 299 @allu22
  • Fixed homebrew installation 297 @vhbit
  • cc files are now automatically recognized as source files 317 @maicki
  • Fixed commandLineArguments not parsing when they had dots in them 323 @yonaskolb
  • Fixed excluding directories that only have sub directories 326 @brentleyjones
  • Made PBXContainerItemProxy ID more deterministic
  • Fixed generated framework schemes from being executable 328 @brentleyjones

Commits

1.9.0 - 2018-04-12 13:39:20

Added

  • Scheme pre and post actions can now be added to target.scheme 280 @yonaskolb
  • Individual files can now be added to fileGroups 293 @yonaskolb

Changed

  • Updated to xcproj 4.3.0 for Xcode 9.3 updates
  • Update default Xcode version to 9.3 including new settings 284 @LinusU
  • Breaking for ProjectSpec library users Changed ProjectSpec to Project and ProjectSpec.Options to SpecOptions 281 @jerrymarino

Fixed

  • Fixed manual build phase of none not being applied to folders 288 @yonaskolb
  • Quoted values now correctly get parsed as strings 282 @yonaskolb
  • Fixed adding a root source folder when createIntermediateGroups is on 291 @yonaskolb
  • Fixed Homebrew installations issues on some machines 289 @vhbit
  • Fixed files that are added as root sources from having invalid parent groups outside the project directory 293 @yonaskolb

Commits

1.8.0 - 2018-03-27 06:19:20

Added

  • Added Project defaultConfig 269 @keith
  • Added Target attributes 276 @yonaskolb
  • Automatically set DevelopmentTeam and ProvisioningStyle within TargetAttributes if relevant build settings are defined 277 @yonaskolb

Fixed

  • Fixed default LD_RUNPATH_SEARCH_PATHS for app extensions 272 @LinusU

Internal

  • Make LegacyTarget init public 264 @jerrymarino
  • Upgrade to xcproj to 4.2.0, Yams to 0.6.0 and PathKit to 0.9.1 @yonaskolb

1.7.0 - 2018-03-02 23:16:04

Added

  • Added support for scheme environment variables 239 254 259 @turekj @toshi0383
  • Added carthageExecutablePath option 244 @akkyie
  • Added parallelizeBuild and buildImplicitDependencies to Schemes 241 @rahul-malik @yonaskolb
  • Added support for Core Data xcdatamodeld files 249 @yonaskolb
  • Projects are now generated atomically by writing to a temporary directory first 250 @yonaskolb
  • Added script for adding precompiled binary to releases 246 @toshi0383
  • Added optional headerVisibilty to target source. This still defaults to public 252 @yonaskolb
  • Releases now include a pre-compiled binary and setting presets, including an install script

Fixed

  • Fixed Mint installation from reading setting presets 248 @yonaskolb
  • Fixed setting buildPhase on a folder source. This allows for a folder of header files 254 @toshi0383
  • Carthage dependencies are not automatically embedded into test targets 256 @yonaskolb
  • Carthage dependencies now respect the embed property 256 @yonaskolb
  • iMessage extensions now have proper setting presets in regards to app icon and runtime search paths 255 @yonaskolb
  • Excluded files are not added within .lproj directories 238 @toshi0383

Commits

1.6.0 - 2018-01-30 08:14:33

Added

  • Added scheme pre-actions and post-actions 231 @kastiglione
  • Added options.disabledValidations including missingConfigs to disable project validation errors 220 @keith
  • Generate UI Test Target Attributes 221 @anreitersimon

Fixed

  • Filter out duplicate source files 217 @allu22
  • Fixed how lastKnownFileType and explicitFileType were generated across platforms 115 @toshi0383
  • Removed a few cases of project diffs when opening the project in Xcode @yonaskolb
  • Fixed Swift not being embedded by default in watch apps @yonaskolb

Changed

  • Change arrays to strings in setting presets 218 @allu22
  • Updated to xcproj 4.0 227

Commits

1.5.0 - 2017-12-27 09:58:02

Added

  • added support for gatherCoverageData flag in target schemes #170 @alexruperez
  • added support for commandLineOptions in target schemes #172 @rahul-malik
  • added Project spec as a SwiftPM library for reuse in other projects #164 @soffes
  • added implicit option for framework dependencies #166 @sbarow
  • added --quite option to CLI #167 @soffes
  • can now print version with -v in addition to --version #174 @kastiglione
  • added support for legacy targets #175 @bkase
  • added support for indentation options #190 @bkase
  • added source excludes #135 #161 #190 @peymankh @
  • added options.xcodeVersion #197 @yonaskolb @peymankh
  • add test targets to Scheme #195 @vhbit
  • add option to make a source file optional incase it will be generated later #200 @vhbit
  • finalize Scheme spec #201 @yonaskolb
  • added buildPhase setting to target source for overriding the guessed build phase of files #206 @yonaskolb
  • added deploymentTarget setting to project and target #205 @yonaskolb

Changed

  • huge performance improvements when writing the project file due to changes in xcproj
  • updated dependencies
  • minor logging changes
  • updated Project Spec documentation
  • scan for Info.plist lazely #194 @kastiglione
  • change setting presets so that icon settings only get applied to application targets #204 @yonaskolb
  • changed scheme build targets format #203 @yonaskolb
  • when specifying a --spec argument, the default for the --project path is now the directory containing the spec #211 @yonaskolb

Fixed

  • fixed shell scripts escaping quotes twice #186 @allu22
  • fixed createIntermediateGroups when using a relative spec path #184 @kastiglione
  • fixed command line arguments for test and profile from being overridden #199 @vhbit
  • fixed files deep within a hierarchy having the path for a name
  • fixed source files from being duplicated if referenced with different casing #212 @yonaskolb
  • fixed target product name not being written. Fixes integration with R.swift #213 @yonaskolb

Commits

1.4.0 - 2017-11-16 10:51:33

Added

  • added --version flag #112 @mironal
  • added support for adding individual file sources #106 #133 #142 #139 @bkase
  • added source compiler flag support #121 @bkase
  • added ProjectSpec.options.createIntermediateGroups #108 @bkase
  • added better json loading support #127 @rahul-malik
  • added source name for customizing names of source directories and file #146 @yonaskolb
  • added folder reference source support via a new type property #151 @yonaskolb
  • added ProjectSpec.options.developmentLanguage #155 @yonaskolb

Changed

  • updated to xcproj 1.2.0 #113 @yonaskolb
  • build settings from presets will be removed if they are provided in xcconfig files #77 @toshi0383
  • all files and groups are sorted by type and then alphabetically #144 @yonaskolb
  • target sources can now have an expanded form #119 @yonaskolb
  • empty build phases are now not generated #149 @yonaskolb
  • make UUIDs more deterministic #154 @yonaskolb

Fixed

  • only add headers to frameworks and libraries #118 @ryohey
  • fixed localized files with the same name #126 @ryohey
  • fix intermediate sources #144 @yonaskolb
  • fix cyclical target dependencies not working #147 @yonaskolb
  • fix directory bundles not being added properly when referenced directly #148 @yonaskolb
  • made mm, c and S file be parsed as source files #120 #125 #138 @bkase @enmiller
  • fix the generation of localized variant groups if there is no Base.lproj #157 @ryohey
  • all localizations found are added to a projects known regions #157 @ryohey

Internal

  • refactoring
  • more tests
  • added release scripts

Commits

1.3.0 - 2017-10-26 22:38:39

Added

  • generate output files for Carthage copy-frameworks script #84 @mironal
  • added options.settingPreset to choose which setting presets get applied #100 @yonaskolb
  • added link option for target dependencies #109 @keith

Changed

  • updated to xcproj 0.4.1 #85 @enmiller
  • don't copy base settings if config type has been left out #100 @yonaskolb
  • generate localised files under a single variant group #70 @ryohey
  • don't apply common project settings to configs with no type #100 @yonaskolb
  • config references in settings can now be partially matched and are case insensitive #111 @yonaskolb
  • other small internal changes @yonaskolb

Fixed

  • embed Carthage frameworks for macOS #82 @toshi0383
  • fixed copying of watchOS app resources #96 @keith
  • automatically ignore more file types for a target's sources (entitlements, gpx, apns) #94 @keith
  • change make build to a PHONY task #98 @keith
  • allow copying of resource files from dependant targets #95 @keith
  • fixed library linking #93 @keith
  • fixed duplicate carthage file references #107 @yonaskolb
  • an error is now shown if you try and generate a target scheme and don't have debug and release builds @yonaskolb

Commits

1.2.4 - 2017-10-01 23:51:23

Fixed

  • setting presets only apply ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: YES to applications
  • don't add carthage dependency to copy-frameworks script if embed: false
  • sort group children on APFS

Changed

  • update to xcproj 0.3.0

Commits

1.2.3 - 2017-09-29 16:21:17

Fixed

  • Fixed wrong carthage directory name reference for macOS #74 @toshi0383
  • Removed unnecessary carthage copy-frameworks for macOS app target #76 @toshi0383
  • Added some missing default settings for framework targets. SKIP_INSTALL: YES fixes archiving
  • Filter out nulls from setting presets if specifying an empty string

Commits

1.2.2 - 2017-09-28 19:42:51

Added

  • automatically set TEST_TARGET_NAME on UI test targets if one of the dependencies is an application target

Fixed

  • set DYLIB_INSTALL_NAME_BASE to @rpath in framework target presets
  • fixed tvOS launch screen setting. ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME is now LaunchImage not tvOS LaunchImage

Commits