Skip to content

Instantly share code, notes, and snippets.

@OhKanghoon
Last active September 28, 2020 14:01
Show Gist options
  • Select an option

  • Save OhKanghoon/7579bb8fd4d304b4d419bfa4ed3ffef8 to your computer and use it in GitHub Desktop.

Select an option

Save OhKanghoon/7579bb8fd4d304b4d419bfa4ed3ffef8 to your computer and use it in GitHub Desktop.
app target spec
targets:
Karrot:
type: application # 타겟 타입
platform: iOS # 타겟 플랫폼
sources: # 소스들 추가
- path: Sources
- path: Resources
- path: Supporting Files
excludes:
- Info.plist # Info.plist 파일 추가해주세요!
configFiles: # 타겟 xcconfig 파일 등록
Alpha: Karrot-Alpha.xcconfig
Development: Karrot-Development.xcconfig
Production: Karrot-Production.xcconfig
attributes:
ProvisioningStyle: Manual # 프로비져닝
SystemCapabilities:
com.apple.Push: # 푸시
enabled: 1
# 사용하는 것들 더 추가해주세요
preBuildScripts: # Build Phase 에 추가되는 pre build script
- name: Script1
script: |
"echo Script1"
postBuildScripts: # Build Phase 에 추가되는 post build script
- name: Script2
script: |
"echo Script2"
settings:
INFOPLIST_FILE: Info.plist # Info.plist 등록
dependencies:
- sdk: Foundation.framework # 사용하는 framework 들 등록
- target: AATarget # 사용하는 target 들 등록
- carthage: AAAA # Carthage 도 편리하게 등록
KarrotTests:
type: bundle.unit-test # 테스트 타입
platform: iOS # 플랫폼
sources: # 소스들 추가
- path: Tests
configFiles: # xcconfig 추가
Alpha: KarrotTests-Alpha.xcconfig
Development: KarrotTests-Development.xcconfig
Production: KarrotTests-Production.xcconfig
settings:
INFOPLIST_FILE: Info.plist # Info.plist 등록
dependencies:
- # 위와 동일
schemes:
Scheme2:
build:
targets:
Karrot: all
KarrotTests: [test]
run:
config: Development
language: ko
commandLineArguments:
- AAA # arguments 추가
environmentVariables:
AAA # 환경 변수 추가
test:
config: Development
gatherCoverageData: true
targets: [KarrotTests]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment