Commit Graph

47 Commits

Author SHA1 Message Date
Yonas Kolb 75e0644b99 wrap long lines 2017-12-26 18:47:18 +08:00
Yonas Kolb e75b1c1e89 format code 2017-12-26 17:56:02 +08:00
Yonas Kolb 7c7bbce783 refactor TargetScheme -> Scheme initialization 2017-12-21 19:02:29 +08:00
Valerii Hiora 9bcd1db486 Missed one more testables occurence 2017-12-21 10:58:37 +02:00
Valerii Hiora 5a3e37218d Added support for testables in Scheme
Fixes #193

This addresses the issue that it was impossible to test targets if
custom scheme was used by providing array of testables to `Test` action.

Now it should be possible using the following syntax:

```yaml
STCore:
  build:
    targets:
      - target: STCore
        buildTypes: all
  test:
    testables: [STCoreTests]
    config: Staging-Debug
```

Note that original example in #193 has to be modified for this change
as it causes a confusion in Xcode: if we have 2 targets `STCore` and
`STCoreTests`, if `STCoreTests` is also added as testable Xcode
duplicates test target in build actions (i.e. `STCore`, `STCoreTests`,
`STCoreTests` are shown).
2017-12-21 10:50:47 +02:00
Yonas Kolb 8864e4b1b6 Merge pull request #199 from vhbit/overwrite-cmdargs
Fixed test/profile command line args not being passed
2017-12-21 16:35:57 +08:00
Valerii Hiora 89061e316d Fixed test/profile command line args not being passed
It's not enough just set command line arguments - there is a separate
flag in scheme, which allows them to overwrite default launch arguments.

Now that flag is automatically set if there are any args provided.

Fixes #198
2017-12-21 10:25:08 +02:00
Yonas Kolb 5a30baf77e add xcodeVersion option 2017-12-20 23:13:31 +08:00
Brandon Kase 69b1368013 Support Legacy Targets (#175)
XcodeGen now supports "External Build Tool" target type (internally called
PBXLegacyTarget in Xcode). This is implied when the target provides a
`LegacyTarget` field in its spec.

PBXLegacyTargets are just like normal targets but the `isa` is different
and they have a notion of a buildTool. Most of the target logic doesn't
have to change.
2017-12-18 13:26:49 -08:00
Rahul Malik 8a46cde0b1 Add commandlineArguments to XcodeGenKit Scheme specifications (#172)
* Add commandlineArguments to XcodeGenKit Scheme specifications

* Update xcproj reference, format code, cleanup usage of
commandlineArguments in ProjectGenerator

* Update docs, CHANGELOG and equality checks in Scheme.swift

* Doc update

* Update fixture tests to have command line arguments. Fix remaining issue
with Scheme creation through "Test Scheme"
2017-11-28 11:02:59 -08:00
Alex Rupérez c59c6a02db Added support for codeCoverageEnabled flag in target schemes. (#170)
* Resolves #169, added support for codeCoverageEnabled flag in target schemes.

* #170 @yonaskolb code review fix and docs update.

* More #170 @yonaskolb code review fix.

* Using gatherCoverageData instead of codeCoverageEnabled naming, thanks @kastiglione.

* Now using xcproj 1.5.0

* Another #170 @yonaskolb code review fix.
2017-11-24 11:45:56 +01:00
Yonas Kolb 0c1325cc5f remove header comments 2017-11-22 13:01:17 +01:00
rmalik f2c4ebabfd Update XcodeGen for latest performance fixes in xcproj 2017-11-16 15:37:53 -08:00
Yonas Kolb 9a41bb9ab6 minor refactoring of spec validation 2017-10-29 20:32:36 +01:00
Yonas Kolb 779397ec8d move basePath into ProjectSpec 2017-10-24 21:30:06 +02:00
Yonas Kolb fec6066d91 updated to xcproj 0.3.0 2017-10-01 11:42:07 +02:00
Yonas Kolb 8a993fd94c move spec validation into seperate file 2017-09-24 19:42:14 +02:00
Yonas Kolb 2b4d8aa6ff update generated LastUpgradeVersion to 0900 2017-09-19 13:14:38 +02:00
Yonas Kolb 1ef53e39f0 change Target.Dependency to a struct with embed 2017-08-27 11:53:16 +02:00
Yonas Kolb d8ffafe4cf rename setting presets to setting groups 2017-08-26 18:38:39 +02:00
Yonas Kolb 6f9f194863 rename RunScript to BuildScript 2017-08-26 15:01:09 +02:00
Yonas Kolb 3cfd3ce816 swiftformat 2017-08-25 19:18:02 +02:00
Yonas Kolb fc72702e33 update to xcodeproj 0.1.0 2017-08-25 15:05:31 +02:00
Yonas Kolb 5f999a2ab1 fix xcodeproj 0.0.9 module changes 2017-08-04 08:52:30 +02:00
Yonas Kolb 823eceba75 add unit tests to target schemes 2017-08-04 00:23:52 +02:00
Yonas Kolb 7a390bb31a change scheme build targets schema 2017-08-03 22:02:49 +02:00
Yonas Kolb 3d42c95e18 add spec validation for missing target config files 2017-08-02 21:15:19 +02:00
Yonas Kolb 63d98adb65 user PathKit for resolving absolute paths 2017-08-02 12:54:07 +02:00
Yonas Kolb 9cc1e50824 add run script support 2017-08-01 18:40:40 +02:00
Yonas Kolb 03b212c517 support absolute paths 2017-08-01 18:08:43 +02:00
Yonas Kolb 560cec746a add format code script 2017-07-31 12:32:50 +02:00
Yonas Kolb 4614073cfa rename Spec to ProjectSpec and moved into its own module 2017-07-28 16:32:35 +02:00
Yonas Kolb 2357146b06 overhaul build settings 2017-07-27 14:41:18 +02:00
Yonas Kolb 9d5342d301 buildPresets 2017-07-26 23:18:45 +02:00
Yonas Kolb 4e35dc6b02 remove Spec.configVariants and move to Target.generateSchemes 2017-07-26 19:58:34 +02:00
Yonas Kolb fb18197b27 generate schemes 2017-07-26 18:52:07 +02:00
Yonas Kolb 335a4af5e5 generate target scheme variants 2017-07-26 12:55:21 +02:00
Yonas Kolb bb300ca1f3 refactoring 2017-07-26 12:40:45 +02:00
Yonas Kolb 4a90a065dc move path out of Spec 2017-07-25 23:13:16 +02:00
Yonas Kolb 74f0986ffb better build phases 2017-07-23 20:58:14 +02:00
Yonas Kolb 9e8150bf69 use yonaskolb/xcodeproj temporarily for swift 3 2017-07-23 14:02:53 +02:00
Yonas Kolb 49db993f52 cleanup 2017-07-22 21:59:29 +02:00
Yonas Kolb 36eabc1383 framework linking 2017-07-22 12:42:05 +02:00
Yonas Kolb 11761e2bf0 spec linter 2017-07-22 11:15:37 +02:00
Yonas Kolb 14f411d8b0 build settings 2017-07-21 23:12:29 +02:00
Yonas Kolb d2763ebe26 refactor generator 2017-07-21 12:24:17 +02:00
Yonas Kolb 1373ec19ac refactored 2017-07-20 23:24:53 +02:00