Skip to content

Instantly share code, notes, and snippets.

@stefanomondino
Last active July 29, 2020 16:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanomondino/c1acf3496df019220d0e000b4e2e853b to your computer and use it in GitHub Desktop.
Save stefanomondino/c1acf3496df019220d0e000b4e2e853b to your computer and use it in GitHub Desktop.
Project.yaml example for XcodeGen
name: TestProject
configs:
Devel Run: debug
Devel Archive: release
Prod Run: debug
Prod Archive: release
settings:
configs:
Devel Run:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEVEL DEBUG
PRODUCT_BUNDLE_IDENTIFIER: com.stefanomondino.app.devel
Devel Archive:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEVEL
PRODUCT_BUNDLE_IDENTIFIER: com.stefanomondino.app.devel
Prod Run:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: PROD DEBUG
PRODUCT_BUNDLE_IDENTIFIER: com.stefanomondino.app
Prod Archive:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: PROD
PRODUCT_BUNDLE_IDENTIFIER: com.stefanomondino.app
options:
bundleIdPrefix: com.stefanomondino
postGenCommand: bundle exec pod install
createIntermediateGroups: true
deploymentTarget:
iOS: "11.0"
fileGroups:
- project.yml
- Podfile
- Podfile.lock
- Gemfile
- Murrayfile.json
- Murray
- Readme.md
- .gitignore
- config.swiftlint.yml
targets:
TestProject:
type: application
platform: iOS
sources: "Sources/App"
scheme:
testTargets:
- AppTests
configVariants:
- Devel
- Prod
dependencies:
- target: Model
preBuildScripts:
- name: "SwiftLint"
script: |
"${SRCROOT}/Pods/SwiftLint/swiftlint" --config "${SRCROOT}/config.swiftlint.yml"
postBuildScripts:
- name: "Crashlytics"
script: |
"${PODS_ROOT}/FirebaseCrashlytics/run"
inputFiles: |
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
Model:
type: framework
platform: iOS
sources: "Sources/Model"
ModelTests:
type: bundle.unit-test
platform: iOS
sources: "Tests/Model"
AppTests:
type: bundle.unit-test
platform: iOS
sources: "Tests/App"
aggregateTargets:
CorrectSwiftLint:
scheme:
buildScripts:
- name: "Autocorrect"
script: |
"${SRCROOT}/Pods/SwiftLint/swiftlint" autocorrect --config "${SRCROOT}/config.swiftlint.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment