XcodeGen/Tests/Fixtures/TestProject/spec.yml
2018-01-30 17:37:15 +11:00

109 lines
2.5 KiB
YAML

name: Project
include: [environments.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2
deploymentTarget:
watchOS: 4.0
fileGroups:
- Configs
- FileGroup
configFiles:
Test Debug: Configs/config.xcconfig
targets:
Legacy:
type: ""
platform: iOS
legacy:
toolPath: /usr/bin/true
passSettings: true
App_iOS:
type: application
platform: iOS
deploymentTarget: 11.2
sources:
- StandaloneFiles/StandaloneAssets.xcassets
- path: App_iOS
name: App
compilerFlags:
- "-Werror"
- path: StandaloneFiles/Standalone.swift
- FileGroup/UnderFileGroup
- Resources/MyBundle.bundle
- path: Resources/ResourceFolder
type: folder
settings:
INFOPLIST_FILE: App_iOS/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.project.app
dependencies:
- target: Framework_iOS
- carthage: Alamofire
- target: App_watchOS
scheme:
testTargets:
- App_iOS_Tests
- App_iOS_UITests
gatherCoverageData: true
commandLineArguments:
MyEnabledArgument: true
MyDisabledArgument: false
postbuildScripts:
- path: scripts/strip-frameworks.sh
name: Strip Unused Architectures from Frameworks
runOnlyWhenInstalling: true
- name: MyScript
script: |
echo "You ran a script!"
App_watchOS:
type: application.watchapp2
platform: watchOS
sources:
App_watchOS
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.app.watch
dependencies:
- target: App_watchOS Extension
App_watchOS Extension:
type: watchkit2-extension
platform: watchOS
sources:
App_watchOS Extension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.app.watch.extension
dependencies:
- carthage: Alamofire
Framework:
type: framework
platform: [iOS, tvOS, watchOS, macOS]
sources: Framework
postbuildScripts:
- name: MyScript
path: scripts/script.sh
dependencies:
- carthage: Alamofire
App_iOS_Tests:
type: bundle.unit-test
platform: iOS
sources: App_iOS_Tests
dependencies:
- target: App_iOS
App_iOS_UITests:
type: bundle.ui-testing
platform: iOS
sources: App_iOS_UITests
dependencies:
- target: App_iOS
schemes:
Framework:
build:
targets:
Framework_iOS: all
preActions:
- script: echo Starting Framework Build
settingsTarget: Framework_iOS