XcodeGen/Tests/Fixtures/TestProject/project.yml
2018-04-12 23:17:07 +10:00

128 lines
3.0 KiB
YAML

name: Project
include: [environments.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2
deploymentTarget:
watchOS: 4.0
fileGroups:
- Configs
- FileGroup
- SomeFile
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
attributes:
ProvisioningStyle: Automatic
sources:
- StandaloneFiles/StandaloneAssets.xcassets
- path: App_iOS
name: App
compilerFlags:
- "-Werror"
excludes:
- "**/excluded-file"
- "excluded-file"
- path: StandaloneFiles/Standalone.swift
- FileGroup/UnderFileGroup
- Resources/MyBundle.bundle
- path: Resources/ResourceFolder
type: folder
- path: Folder
type: folder
buildPhase: none
- path: Mintfile
type: file
buildPhase: none
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
- path: Headers
buildPhase: headers
type: folder
headerVisibility: public
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:
parallelizeBuild: false
buildImplicitDependencies: false
targets:
Framework_iOS: all
preActions:
- script: echo Starting Framework Build
settingsTarget: Framework_iOS