42 Commits

Author SHA1 Message Date
Kanstantsin Shautsou 38d76e7fa1 Use USER env var instead of LOGNAME (#1559)
During user switch with su/sudo in system LOGNAME may not be initialised, but USER env var is always exist.
2025-07-17 15:30:32 +10:00
Marcos Griselli 1aa7e281b7 Fix Swift 6 warnings (#1513) 2024-12-29 15:57:28 +11:00
Dale 126339f1c8 Run preGenCommand before checking the cache (#1519)
The preGenCommand may generate files, change paths, etc. If we run this after checking the cache, it never gets the chance to run if the cache hasn't changed. Running it before checking the cache lets us make these changes and _then_ we can check the cache to see if we need to regenerate or not.

Co-authored-by: Dale Myers <dalemyers@microsoft.com>
2024-12-03 08:44:05 +11:00
Simon B. Støvring 2cf88e8088 Runs pre-gen command before validating project (#1500) 2024-09-12 11:33:30 +10:00
Kohki Miki 7eb5e9bd06 Remove GraphViz feature (#1485)
* Remove GraphViz to pass build on Xcode 16

* Update documentations
2024-07-02 17:06:02 +10:00
Yonas Kolb 576739bcb5 Add cache command (#1476)
* add cache command

* docs: update git hook info
2024-05-20 21:32:24 +10:00
Wendy Liga 43e40a9efc Added support for scheme management (#1142)
* wip

* Added scheme management metadata properties to TargetScheme

* wip

* Added Scheme.Management for metadata

* use sharedDefault

* move generateSchemeManagement to SchemeGenerator

* revert

* update changelog

* update docs

* update test case

* remove

* remove unused file

* revert

* changed on fixtures project

* Updated ProjectSpec docs index

* User Scheme.Management also for TargetSchemes, use XCUserData

* Changelog

* Switch XcodeProj back tuist/XcodeProj - 8.9.0

* Reindent TOC Docs/ProjectSpec.md

* Revert swift tools version

---------

Co-authored-by: Tieme van Veen <tiemevanveen@hotmail.com>
2023-02-24 09:49:57 +11:00
Roland 3e9fd048ef allow multiple spec files to be provided to XcodeGen (#1270)
* allow spec to be a comma separated list of specs instead of one

* update readme and --spec command documentation

* update Changelog

* print project name
2022-11-02 17:42:22 +11:00
John Connolly be0c3c3926 Added ability to use custom location for local Swift packages (#1175)
* Added xcodePath functionality

* Added xcodePath functionality

* Renamed Xcode path to group

* Updated change log and added fixture tests
2022-03-25 11:26:06 +11:00
Elliott Williams 35212a6154 Rename Core to avoid collisions with other packages (i.e. GraphViz) (#1057)
* Rename 'Core' to 'XcodeGenCore'

* Update CHANGELOG.md

* Update CHANGELOG.md
2021-05-01 13:39:34 +10:00
Jeff Lett 98275e9a06 Adding graphviz support in dump (#852)
* Adding graphviz support in dump
Added tests

* Updating graph viz to use UML formatting
Updating README
Adding Changelog entry

* Adding dependency type to graphviz display
2020-05-04 20:52:49 +10:00
Ian Leitch b1edbda583 Add --project-root option to generate command. (#828) 2020-04-08 14:20:54 -05:00
yonaskolb ce787d9e40 use mxcl/Version to fix parsing 2020-02-07 10:49:28 +11:00
Yonas Kolb 49ed1503ef Add pre and post-gen commands (#759)
* add pre and post-gen commands

* update changelog

* run gen scripts in project directory
2020-01-27 22:22:35 +11:00
Dan Loman 0c6dd1401a Add option to generate only plist files
Add changelog entry

Update CHANGELOG.md

Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com>

Update to new flag PropertyWrapper
2020-01-07 13:49:03 -08:00
yonaskolb 06a02425f6 use new property wrappers in SwiftCLI 6.0 2020-01-05 11:43:26 +11:00
yonaskolb 0e4e08bfc4 run swift format for Swift 5.1 2019-11-10 11:56:23 +11:00
yonaskolb d96f7890e4 Refactor commands 2019-11-10 11:38:53 +11:00
yonaskolb 44f9ffa51a formatting 2019-11-10 11:38:53 +11:00
yonaskolb aa0fd85bfe add file option 2019-11-10 11:38:53 +11:00
yonaskolb 43cd0ec33e add dump command 2019-11-10 11:37:52 +11:00
yonaskolb 5711c6be0d Remove project description from generate 2019-11-10 11:37:52 +11:00
Romuald Cari 06a6616b88 Improving variable expansion runtime (#704)
* Improving variable expansion runtime

The current implementation of variable expansion is O(n x m) with n being the
number of strings in the project spec and m being the number of project variables.

This implementation is now O(n).

Also, this effectively deprecates the support for $legacy_variables in favor of the
${new_variables} making this whole patch possible.

* Adding option to disable variable expansion

* Adding performance test for spec loading

* Updating changelog
2019-11-06 08:33:54 -06:00
giginet 80808d69c8 Rename 2019-10-22 23:37:01 +09:00
giginet 44c7a0cae2 Pass projectDestinationDirectory 2019-10-08 22:48:42 +09:00
giginet 047856a3b2 Remove manipulators 2019-10-05 18:25:09 +09:00
giginet 71922dae56 Rename variables 2019-10-05 18:14:54 +09:00
giginet d9a84fbbb3 Use struct instead of class 2019-10-02 22:40:42 +09:00
giginet 6cdd9843a2 Update SwiftCLI 2019-10-01 02:09:25 +09:00
yonaskolb 745be5fc1d update import name 2019-06-26 16:49:10 +10:00
Tom Quist c8aef74a93 Fix review suggestions 2019-06-17 00:01:33 +02:00
Tom Quist 4b8d46429a Fix order of file generation
When the `Info.plist` doesn’t exist in filesystem (e.g. because it’s in `.gitignore`)
xcodegen generates the file but doesn’t add it to the `xcodeproj`. Only when
`xcodegen` is executed a second time it is included.

This changes the order of generation of these files to first generate the
plist and then the project.
2019-03-26 14:04:08 +01:00
Tom Quist aaae772d0e Add ability to define templateAttributes within a target
This allows parameterizing templates. Also change
placeholder syntax to `${placeholderName}` also for
existing placeholders `$target_name`and `$platform`
and generate warnings when using the old placeholder
syntax.
2019-03-17 14:55:15 +01:00
Yonas Kolb f04c3e0496 format code 2018-12-18 22:37:22 +11:00
Yonas Kolb c8db304024 update docs 2018-12-18 22:16:45 +11:00
Yonas Kolb f061c03e6a Merge master into lockfile 2018-12-18 20:54:38 +11:00
Yonas Kolb f87642c938 get xcodegen working with arguments and without generate for backwards compatability 2018-12-18 20:25:03 +11:00
Yonas Kolb ed80164a4d fix project not generating if private settings are checked in 2018-12-05 19:36:01 +11:00
Yonas Kolb c4b9b19a96 add cache-path argument 2018-12-01 18:45:06 +11:00
Yonas Kolb 20eaafd246 Merge master into lockfile 2018-11-12 23:07:29 +11:00
Yonas Kolb b438c5e491 remove some emoji from output 2018-11-11 13:25:07 +11:00
Yonas Kolb 07cd5a4a0b add XcodeGenCLI 2018-11-11 00:42:21 +11:00