Joseph Colicchio
ae186edb68
Bugfix/SimulateLocation Fix ( #973 )
...
* Preemptively fix compilation for latest XcodeProj
* Add StoreKitConfiguration to scheme and generator
* Add scheme generator test
* Fix and add tests
* Support StoreKitConfiguration in TargetScheme
* Set default type of `storekit` to `.none`
* Upgrade XcodeProj to 7.15.0
* Create struct for StoreKitConfiguration
* Update tests
* Add storekit configuration to test project
* Update changelog
* Update project spec
* Fix xcodeprojs
* Fix projects
* Capitalize String
* Update CHANGELOG.md
Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com >
* Refactor StoreKitConfiguration init from json
* Change `forWorkspace` to `pathPrefix` and add tests
* Replace StoreKitConfiguration struct with string + option
* Fix tests
* Update project spec
* Fixup changelog
* Add `See Options` to `storeKitConfiguration` in project spec
* Make `simulateLocation` respect `schemePathPrefix`
* Update docs
Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com >
2021-02-16 09:35:47 +11:00
Bartosz Polaczyk
2c600a7c64
Add Discovered Dependency File ( #1012 )
...
* Upgrade XCodeProj to 7.14.0
* Bump to XcodeProj to fork
* Add script discoveredDependencyFile
* Align cfbundle test
* Add changelog mock
* Update Documentation
* Update SPM manifest
* Change property name
* Verify defult dependency file to nil
* Add JSON encodable test
* Add PR number
Co-authored-by: Fernanda Geraissate <fernandag@spotify.com >
2021-02-15 12:43:41 +11:00
Joseph Colicchio
50aedc4511
Feature/Store Kit Configuration ( #964 )
...
* Preemptively fix compilation for latest XcodeProj
* Add StoreKitConfiguration to scheme and generator
* Add scheme generator test
* Fix and add tests
* Support StoreKitConfiguration in TargetScheme
* Set default type of `storekit` to `.none`
* Upgrade XcodeProj to 7.15.0
* Create struct for StoreKitConfiguration
* Update tests
* Add storekit configuration to test project
* Update changelog
* Update project spec
* Fix xcodeprojs
* Fix projects
* Capitalize String
* Update CHANGELOG.md
Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com >
* Refactor StoreKitConfiguration init from json
* Change `forWorkspace` to `pathPrefix` and add tests
* Replace StoreKitConfiguration struct with string + option
* Fix tests
* Update project spec
* Fixup changelog
* Add `See Options` to `storeKitConfiguration` in project spec
Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com >
2021-02-15 11:58:16 +11:00
Max Rabiciuc
6b7ab91440
Fix issue where frameworks with MACH_O_TYPE:staticlib were being embedded ( #1003 )
2021-01-15 09:51:38 +11:00
Roman Podymov
742fe69c5b
"Copy only when installing" for "Embed App Extensions" ( #948 )
...
* Added onlyCopyExtensionsOnInstall
* Fix for Xcode 12
* Fixed PBXCopyFilesBuildPhase for "Embed App Extensions"
* Test for onlyCopyExtensionsOnInstall
* Update CHANGELOG.md
* Update ProjectSpec.md
* Refactoring
* More tests for onlyCopyExtensionsOnInstall
* Reverted
* Refactoring with getPBXCopyFilesBuildPhase
* Deleted similar tests
* onlyCopyExtensionsOnInstall -> onlyCopyFilesOnInstall
* Update ProjectSpec.md
* Update CHANGELOG.md
* Update ProjectGeneratorTests.swift
2020-10-02 17:48:32 +10:00
Cody Vandermyn
43177dec49
Select the first runnable target ( #957 )
...
* Select the first runnable target, if there is one
Instead of just selecting the first target as the scheme target, instead search for and select the first runnable target. If there are no runnables found, then select the first target.
* update docs
2020-09-29 16:44:53 +10:00
Samuel Giddins
c8b24acbdd
Allow creating intermediary groups outside of the project directory ( #892 )
2020-09-02 14:45:27 -07:00
Bartosz Polaczyk
1d2a28490f
Add custom lldinit for a scheme ( #929 )
...
* Add customLLDBInit
* Add changelog info to a valid bucket
* Update PR number
* Add fixture tests
Co-authored-by: Bartosz Polaczyk <bartoszp@spotify.com >
2020-08-12 16:13:47 +10:00
Kiran Thorat
691ca93677
Fixes for embedding SDK dependencies. ( #922 )
2020-08-06 09:13:13 +10:00
Yonas Kolb
20a99e5018
Add FileTypes for cross project file options ( #914 )
...
* move BuildPhase
* add fileTypes
* update changelog
2020-08-04 09:14:32 +10:00
Jared Sorge
331c3da0ef
Add Target option for copying frameworks when installing ( #912 )
...
* Add copy files on install option
* Add documentation
* Add tests
* Add to the target’s JSON if true
* Add changelog entry
* Add test for outputted pbxproj file
2020-07-26 22:15:42 +10:00
Yonas Kolb
7da953a488
swift format
2020-06-17 18:12:34 +10:00
Yonas Kolb
0964a7ed30
Revert "Add staticBinary linkType for Carthage dependency ( #847 )"
...
This reverts commit d88d385757 .
# Conflicts:
# CHANGELOG.md
# Sources/XcodeGenKit/PBXProjGenerator.swift
# Tests/XcodeGenKitTests/ProjectGeneratorTests.swift
2020-06-17 17:56:02 +10:00
Nikita Kukushkin
86c9812582
Allow skipping compile source build phase for bundles ( #878 )
...
* Add `.bundle` to `canSkipCompileSourcesBuildPhase`
* Fix tests
* Update fixtures
* Update CHANGELOG.md
2020-06-05 18:54:48 +10:00
Joseph Colicchio
1f95a41b85
Compile xcmappingmodel files instead of copying them ( #834 )
...
* Compile xcmappingmodel files instead of copying them
* Add test for xcmappingmodel
* Update changelog
* Fix xcmappingmodel reference to avoid folder containing xml
* Fix xcmappingmodel contents to avoid test failure
* Tweak yaml to fix compiler flag on xcmappingmodel
avoid `-Werror` added to xcmappingmodel compiler flags, which was preventing compilation
2020-06-04 15:22:33 +10:00
Joeri Djojosoeparto
7ec2f7f8e3
Feature: Ability to set executable to Ask to Launch ( #871 )
2020-05-29 07:53:48 -05: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
Akio Yasui
f25a8955ba
Don't link transitive static carthage libraries ( #853 )
2020-05-02 12:18:12 -05:00
Toshihiro Suzuki
25f56acc4c
Fix linking of multiple products from the same Swift Package ( #830 )
...
* link dependency.package.products transitively
* update test
* changelog
Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com >
2020-05-02 16:11:50 +10:00
Daiki Matsudate
d88d385757
Add staticBinary linkType for Carthage dependency ( #847 )
2020-05-01 12:54:12 -05:00
Jeff Lett
aaae84f883
Feature/catch xcode test failures ( #851 )
...
* Adding pipefail to CI tests so xcpretty doesn't eat test failures
* Resolving test issues
2020-04-29 08:34:25 -05:00
Beniamin
0ad02b7e26
Add ability to set an order of groups ( #613 )
...
Co-authored-by: Beniamin Sarkisyan <bsarkisyan@projectx019.com >
2020-04-28 10:32:10 -05:00
Sam Kirchmeier
aeb65969d4
Automatically include bundles in the Copy Bundle Resources build phase ( #838 )
2020-04-22 07:59:43 -05:00
Ian Leitch
4ae08453c3
Fix handling of SWIFT_INSTALL_OBJC_HEADER when its value is YES/NO. ( #827 )
...
* Fix handling of SWIFT_INSTALL_OBJC_HEADER when its value is YES/NO.
* Update CHANGELOG.md
* Address PR feedback.
2020-04-15 10:55:56 +10:00
Brentley Jones
e44dcd3948
Set scheme actions to build step for TargetScheme ( #823 )
...
Adjusts the preActions and postActions of a TargetScheme to only be applied applied to the `build` step.
2020-04-13 23:30:46 +10:00
Fumito Nakazawa
18fae50c86
Fix to prevent duplicate addition of carthage static frameworks ( #829 )
...
* Check carthageLinkType is static
* Update changelog
2020-04-13 21:44:14 +10:00
Asif
400c19ee9a
Bugfix: Consider folders with dot in it when generating projects ( #826 )
...
* Bug fix in SourceGenerator
Folders which would have a dot in it, would be added to Copy Bundle Resources even though it contained swift files. This commit, updates the if checks to check if the extension is not of type lproj or xcassets or bundle. This would let Xcodegen handle paths with dots in it
* Refactor SourceGenerator.swift getGroupSources function
* Add FolderWithDot2.0 to TestProject/App_iOS
* Update TestProject fixture with SwiftFileInDotPath and FolderWithDot2.0 changes
* Update test to assert bundles are included in resources
* Remove intentDefinition from whitelistedDirectoryExtensions because it's not a directory, it's always a file so the check is not required
2020-04-09 07:47:54 -05:00
Andrés Cecilia Luque
7afcf1f5f7
Fixed issue when linking and embeding static frameworks: they should be linked and NOT embed ( #820 )
2020-04-07 10:14:42 -05:00
Sebastian Celis
0328fa03e7
Add improved support for simple iOS sticker packs ( #824 )
...
* Allow messages applications to skip the compile sources phase
By default, simple iOS sticker packs created in Xcode do not include
a compile sources phase. This change will allow messages applications
with an empty list of sources to skip that phase entirely.
* Add support for launchAutomaticallySubstyle in run schemes
This is especially important for simple iOS sticker packs that require
this run scheme setting to be set to 2 in order to run the scheme
properly.
2020-04-06 13:37:37 -05:00
Dalton Claybrook
039f6c31e7
Use remote-runnable launch actions for Apple Watch schemes ( #798 )
...
* Add support for using remote runnables with an Apple Watch scheme
2020-03-26 08:14:46 -05:00
Yonas Kolb
15559eb651
Merge pull request #805 from kateinoigakukun/katei/support-SWIFT_INSTALL_OBJC_HEADER
...
Avoid copying ObjC interface header when SWIFT_INSTALL_OBJC_HEADER=false
2020-03-25 11:30:05 +11:00
Yuta Saito
b7d658157e
Merge branch 'master' into katei/support-SWIFT_INSTALL_OBJC_HEADER
2020-03-20 11:50:05 +09:00
freddi
550df76722
Make SwiftPackage itself as enum
2020-03-19 23:29:46 +09:00
freddi
ca8136b62d
Removed localPackages variable
2020-03-18 21:32:24 +09:00
freddi
5eb4c33197
Merge branch 'support-local-sp' into support-local-sp-with-packages
2020-03-18 20:50:23 +09:00
freddi(Yuki Aki)
8dcfd07bd5
Update Tests/XcodeGenKitTests/ProjectGeneratorTests.swift
...
Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com >
2020-03-18 17:13:50 +09:00
Yuta Saito
78c11f94a3
Avoid to copy ObjC interface header when SWIFT_INSTALL_OBJC_HEADER=false
2020-03-14 02:37:00 +09:00
freddi
80fdc18b25
Updated Test
2020-03-05 20:55:34 +09:00
freddi
81c2f4ec67
Added support local package on packages:
2020-03-05 20:40:01 +09:00
freddi
7ca1ba2400
Fixed added test code
2020-03-04 19:43:46 +09:00
freddi
3cab6b989c
Added Test for generates local swift packages
2020-03-04 01:03:39 +09:00
freddi
ae4092d0dd
Removed unnecessary try in test
2020-03-03 22:34:01 +09:00
freddi
0b5585f122
Support Swift Package in local by localPackages
2020-03-03 21:33:18 +09:00
Ken Tominaga
e3f8ae9e85
Set defaultConfigurationName for every target in a project
2020-02-24 16:57:36 -08:00
yonaskolb
d966e9d610
fix legacy targets dependencies
2020-02-07 10:09:09 +11:00
Christopher Rogers
5966e294e7
Stabilize sorting of groups with duplicate names/paths ( #671 )
...
* Stabilize sorting of groups with duplicate names/paths
For example, previously a group with (name: nil, path: "Sources") would be considered equal to (name: "Sources", path: "../Sources"), even though they are distinct groups.
* Remove Comparable conformance from PBXFileElement
...as it isn't compatible with its Equatable conformance.
Renamed localizedStandardCompare to reflect the fact that PBXFileElement no longer has an inherent order.
* Update changelog
2020-02-02 09:46:17 +11:00
Evan Coleman
6bfd620549
Support external target dependencies via subprojects ( #701 )
...
* Allow external target dependencies via subprojects
* Update CHANGELOG
* Update ProjectSpec
* Fix test
* Use existing fixture for test
* Sort subprojects by name
* Throw subproject generation error instead of crashing
* Cleanup target dependency generation
* Update test fixture project
* Combine extentions in Linkage
* Update XcodeProj to 7.7.0
* Update CHANGELOG.md
* Update ProjectSpec.md
Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com >
2020-02-02 09:44:56 +11:00
Bas van Kuijck
f544dd36e6
Added a simulateLocation option in scheme specs ( #756 )
...
* Added a simulateLocation option in scheme specs
* Updated fixtures for simulateLocation
* Use fileGroups instead of sources
2020-01-23 09:12:06 -06:00
sipao
3a9131a21a
Add support On Demand Resources ( #753 )
...
* added on-demand-resources setting to project.yml
* update documents
* Apply suggestions from code review
fixed docs
Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com >
* Make it possible to resourceTags convert to json
* Use sorted() instead of Array initializer
* Avoid merge assetTags if it is empty
* Changed access to resourceTags to inline
* Don't add resourceTags other than chosenBuildPhase is .resources
* update CHANGELOG.md
* update spec loading test
* add a new "generates resource tags" test case
* add resourceTags in Test Fixture and update
Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com >
2020-01-21 08:47:31 +11:00
Yuta Saito
6abca395bc
Merge branch 'master' into katei/add-bundle-dependency
2019-12-01 22:16:14 +09:00