-
Notifications
You must be signed in to change notification settings - Fork 823
/
Copy pathproject.yml
287 lines (271 loc) · 6.59 KB
/
project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
name: Project
include: [environments.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2
transitivelyLinkDependencies: true
deploymentTarget:
watchOS: 4.0
groupSortPosition: top
fileGroups:
- Configs
- FileGroup
- SomeFile
configFiles:
Test Debug: Configs/config.xcconfig
targets:
Legacy:
type: ""
platform: iOS
legacy:
toolPath: /usr/bin/true
passSettings: true
App_macOS:
type: application
platform: macOS
scheme: {}
info:
path: App_macOS/Info.plist
properties:
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
NSMainStoryboardFile: Main
NSPrincipalClass: NSApplication
CFBundleIconFile: ""
CustomSetting: $CUSTOM_SETTING
attributes:
ProvisioningStyle: Automatic
sources:
- path: App_macOS
- path: StandaloneFiles/Standalone.swift
- path: Vendor/SomeXPCService.xpc
- path: NonExisting
optional: true
dependencies:
- target: Framework_macOS
- target: XPC Service
- sdk: Contacts.framework
- sdk: libc++.tbd
- sdk: libz.dylib
App_iOS:
type: application
platform: iOS
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
- path: CopyFiles
buildPhase:
copyFiles:
destination: productsDirectory
subpath: include/$(PRODUCT_NAME)
settings:
INFOPLIST_FILE: App_iOS/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.project.app
dependencies:
- target: Framework_iOS
- target: StaticLibrary_ObjC_iOS
- carthage: Result
- target: Framework2_iOS
weak: true
- target: App_watchOS
- target: iMessageApp
- sdk: Contacts.framework
scheme:
testTargets:
- App_iOS_Tests
- App_iOS_UITests
gatherCoverageData: true
disableMainThreadChecker: true
configVariants:
- Test
- Staging
- Production
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!"
inputFileLists:
- App_iOS/inputList.xcfilelist
outputFileLists:
- App_iOS/outputList.xcfilelist
EntitledApp:
type: application
platform: iOS
entitlements:
path: App_iOS/App.entitlements
properties:
com.apple.security.application-groups: group.com.app
App_watchOS:
type: application.watchapp2
platform: watchOS
deploymentTarget: 3.0
sources:
App_watchOS
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.app.watch
dependencies:
- target: App_watchOS Extension
templates: [MyTemplate]
App_watchOS Extension:
type: watchkit2-extension
platform: watchOS
sources:
App_watchOS Extension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.app.watch.extension
dependencies:
- carthage: Result
link: false
iMessageApp:
type: application.messages
platform: iOS
sources: iMessage
scheme: {}
dependencies:
- target: iMessageExtension
iMessageExtension:
type: app-extension.messages
platform: iOS
sources: iMessage MessagesExtension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.iMessageApp.extension
iMessageStickersExtension:
type: app-extension.messages-sticker-pack
platform: iOS
sources:
- path: iMessage Stickers
StaticLibrary_ObjC:
type: library.static
platform: [iOS, tvOS, watchOS, macOS]
sources: StaticLibrary_ObjC
StaticLibrary_Swift:
type: library.static
platform: iOS
sources: StaticLibrary_Swift
Framework:
type: framework
platform: [iOS, tvOS, watchOS, macOS]
sources:
- path: Framework
excludes:
- "*.xcodeproj"
- path: Headers
buildPhase: headers
type: folder
headerVisibility: public
postbuildScripts:
- name: MyScript
path: scripts/script.sh
dependencies:
- carthage: Result
- target: StaticLibrary_ObjC_${platform}
Framework2:
type: framework
platform: [iOS, tvOS, watchOS, macOS]
sources:
- path: Framework
excludes:
- "*.xcodeproj"
TestFramework:
type: framework
platform: iOS
sources:
- path: Framework
excludes:
- "*.xcodeproj"
depencencies:
- sdk: Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework
root: DEVELOPER_DIR
App_iOS_Tests:
type: bundle.unit-test
platform: iOS
sources: App_iOS_Tests
dependencies:
- target: App_iOS
- target: TestFramework
App_iOS_UITests:
type: bundle.ui-testing
platform: iOS
sources: App_iOS_UITests
dependencies:
- target: App_iOS
XPC Service:
type: xpc-service
platform: macOS
sources:
- path: XPC Service
Tool:
type: tool
platform: macOS
sources: [Tool]
scheme: {}
schemes:
Framework:
build:
parallelizeBuild: false
buildImplicitDependencies: false
targets:
Framework_iOS: all
preActions:
- script: echo Starting Framework Build
settingsTarget: Framework_iOS
run:
commandLineArguments:
argument: YES
argument.with.dot: YES
test:
gatherCoverageData: true
language: ja
region: en
App_Scheme:
build:
targets:
App_iOS: all
test:
gatherCoverageData: true
targets:
- App_iOS_UITests
- name: App_iOS_Tests
parallelizable: true
randomExecutionOrder: true
targetTemplates:
MyTemplate:
scheme: {}
aggregateTargets:
SuperTarget:
attributes:
CUSTOM: value
targets:
- App_iOS
- Framework_iOS
settings:
MY_SETTING: hello
buildScripts:
- name: MyScript
script: echo "do the thing"