Commit Graph

230 Commits

Author SHA1 Message Date
Khaos Tian 474d8f6907 Bugfix: Ensure folder and wrapper directories are correctly set on generated project (#862)
Check for UTI type instead of hardcoded extensions.
2020-05-18 12:21:34 -05:00
Akio Yasui f25a8955ba Don't link transitive static carthage libraries (#853) 2020-05-02 12:18:12 -05:00
Ian Leitch f010771a30 Generate correct PBXTargetDependency for external targets. (#843) 2020-04-23 12:25:25 -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 7ff577911d Prefix static library target filenames with 'lib' to match Xcode. (#831)
* Prefix static library target filenames with 'lib' to match Xcode.

Given a target named 'MyTarget', Xcode automatically prefixes the filename with 'lib', resulting in the filename 'libMyTarget.a'.

* Update CHANGELOG.md

Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com>
2020-04-13 21:49:17 +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
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
Yonas Kolb 5106f5052e complete XcodeProj 7.10.0 upgrade 2020-04-03 10:32:22 +11: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
ionutivan 2f0c5ea7a4 change test fixtures 2020-03-17 18:36:51 +01:00
ionutivan 40902fb422 set stopOnEveryMainThreadCheckerIssue true for App_iOS_Tests and App_iOS_UITests 2020-03-05 12:59:38 +01:00
ionutivan 364aa7db12 add integration test by modifying the yaml file 2020-03-04 17:24:27 +01:00
Ken Tominaga c0c998b429 Set xcodeproj path in project.xcworkspace/contents.xcworkspacedata (#793)
* Set xcodeproj path in project.xcworkspace/contents.xcworkspacedata

* Update CHANGELOG.md
2020-02-28 14:40:37 -06:00
Bryan Summersett 7c35c25468 Revert "Add Base to known regions even if one doesn't exist"
This reverts commit 98472a3d88.
2020-02-26 18:31:14 -08:00
Ken Tominaga f510b44186 Set TEST_TARGET_NAME only when a project has UITest bundle (#792)
* Set `TEST_TARGET_NAME` only for UITest

* Update CHANGELOG.md
2020-02-26 09:26:35 -06:00
Ken Tominaga 930d4cb27b Update Fixtures 2020-02-24 16:57:47 -08:00
Yonas Kolb f2def422c5 Reorder build phases (#768)
* update changelog

* moved `Copy Bundle Resources` to after `Link with Libraries` build phase
2020-02-02 10:39:35 +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
Yonas Kolb 6b7b7e6134 Update and lock XcodeProj to 7.7.0 (#767) 2020-02-02 09:35:45 +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
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 ea6ac80c87 Add AnotherProject for fixture 2019-11-21 16:38:06 +09:00
Yuta Saito 49f29e9156 Merge branch 'master' into katei/add-bundle-dependency 2019-11-20 19:35:38 -08:00
Yuta Saito 663ab0c3f9 Update Fixtures 2019-11-20 19:31:48 -08:00
Yuta Saito 074791175c Add bundle dependency to TestProject 2019-11-20 19:26:42 -08:00
yonaskolb c7d81f1d4d add custom group to TestFixture 2019-11-20 22:18:05 +11:00
Yonas Kolb 32bd7ed568 Update to XcodeProj 7.4 (#715)
Update to XcodeProj 7.4
2019-11-10 12:54:03 +11:00
yonaskolb 63bf4f1584 regen fixtures 2019-11-10 12:40:47 +11:00
yonaskolb 0e4e08bfc4 run swift format for Swift 5.1 2019-11-10 11:56:23 +11:00
Yuta Saito db9c99da3a Update fixtures 2019-10-30 15:53:03 +09:00
Malcolm Jarvis d22ab944c4 Fix macOS unit test target TEST_HOST (#696)
Resolves #695

Previously, macOS unit test targets would appear to have no test host.

By manually setting the test host in Xcode on the fixture project, I discovered that macOS test hosts require an additional `Contents/MacOS/` path component before the product name.

We can manually detect the platform when setting the test host and as such generate the host correctly for macOS unit test targets.
2019-10-24 11:12:00 -05:00
Qusic 76827d96e3 fix tests in case-sensitive file system 2019-10-02 17:02:57 +08:00
yonaskolb 26a0ca3b64 fix fixture building in Xcode 11 2019-09-28 17:14:45 +10:00
yonaskolb b03f682418 add some more lastKnownFileType that Xcode generates 2019-09-28 14:48:36 +10:00
yonaskolb b7564b1c49 make LD_RUNPATH_SEARCH_PATHS an array like Xcode now does 2019-09-28 14:48:16 +10:00
Yuta Saito d33d55cc5b Update generated xcscheme 2019-09-13 10:09:43 +09:00
Yuta Saito fc5979150c Update TestProject project.yml 2019-09-13 10:09:43 +09:00
Yuta Saito 923a60fb63 Add dylib sdk for TestProject 2019-09-10 23:09:27 +09:00
Miles Hollingsworth 30ef0fb3be update integration test 2019-08-13 16:53:00 -07:00
yonaskolb af2ee82a79 regen fixtures 2019-06-26 16:52:20 +10:00
Andrés Cecilia Luque 3baa3b3e4d Updated compatibilityVersion 2019-05-07 18:43:17 +02:00
Yonas Kolb 17db27bb9d Merge pull request #558 from KhaosT/fix-embed-watch-target
Fix Carthage dependencies for watchOS target
2019-04-09 21:47:45 +10:00
Tian Zhang a5f0a9f7ee Fix ITMS-90539
Fix embed condition

Revert "Fix embed condition"

This reverts commit fc586863aad7cda8fc506e02bed10717dae66638.

separate condition
2019-04-08 19:52:42 -07:00
Kryštof Matěj 0533dda0a6 Added support for custom framework root 2019-04-08 15:41:06 +02:00
yonaskolb a7613064b4 update latest xcode version to 10.2 2019-04-02 22:44:05 +11:00
yonaskolb 401dd772eb remove ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 2019-04-02 22:44:05 +11:00
yonaskolb f69fdb508d set SWIFT_COMPILATION_MODE in release to wholemodule 2019-04-02 22:44:05 +11:00
yonaskolb 93fb985732 use sdk default for SWIFT_OPTIMIZATION_LEVEL in release config (-O) 2019-04-02 22:43:36 +11:00
yonaskolb 27c588a193 update default swift version to 5.0 2019-04-02 22:42:18 +11:00