Files
XcodeGen/Tests/Fixtures/TestProject/spec.yml
T
2017-11-15 01:22:02 +01:00

59 lines
1.5 KiB
YAML

name: Project
include: [environments.yml]
options:
bundleIdPrefix: com.project
fileGroups:
- Configs
- FileGroup
configFiles:
Test Debug: Configs/config.xcconfig
targets:
App_iOS:
type: application
platform: iOS
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:
PRODUCT_BUNDLE_IDENTIFIER: com.project$(BUNDLE_ID_SUFFIX)
INFOPLIST_FILE: App_iOS/Info.plist
dependencies:
- target: Framework_iOS
- carthage: Alamofire
scheme:
testTargets:
- App_iOS_Tests
postbuildScripts:
- path: scripts/strip-frameworks.sh
name: Strip Unused Architectures from Frameworks
runOnlyWhenInstalling: true
- name: MyScript
script: |
echo "You ran a script!"
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
settings:
TEST_HOST: $(BUILT_PRODUCTS_DIR)/TestProject.app/TestProject
INFOPLIST_FILE: TestProjectTests/Info.plist
dependencies:
- target: App_iOS