-
Notifications
You must be signed in to change notification settings - Fork 824
/
project.yml
535 lines (510 loc) · 13.6 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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
name: Project
include: [environments.yml, AnotherProject/project.yml]
options:
bundleIdPrefix: com.project
usesTabs: false
indentWidth: 2
tabWidth: 2
transitivelyLinkDependencies: true
deploymentTarget:
watchOS: 4.0
groupSortPosition: top
preGenCommand: echo "This is a pre-gen command"
postGenCommand: scripts/script.sh
fileTypes:
abc:
buildPhase: none
abcd:
buildPhase: none
fileGroups:
- Configs
- FileGroup
- SomeFile
- Utilities
- App_iOS/Configuration.storekit
projectReferences:
AnotherProject:
path: ./AnotherProject/AnotherProject.xcodeproj
configFiles:
Test Debug: Configs/config.xcconfig
packages:
Swinject:
url: https://github.com/Swinject/Swinject
version: 2.8.0
breakpoints:
- type: File
path: App_iOS/AppDelegate.swift
line: 7
condition: launchOptions == nil
actions:
- type: Log
message: message
conveyanceType: speak
- type: File
path: App_iOS/AppDelegate.swift
line: 11
column: 13
- type: Exception
scope: All
stopOnStype: Catch
actions:
- type: DebuggerCommand
command: po $arg1
- type: AppleScript
script: display alert "Exception happened!"
- type: Sound
sound: Blow
- type: SwiftError
enabled: false
- type: OpenGLError
ignoreCount: 2
actions:
- type: ShellCommand
path: script.sh
arguments: argument1, argument2
waitUntilDone: true
- type: Symbolic
symbol: UIViewAlertForUnsatisfiableConstraints
module: UIKitCore
actions:
- type: GraphicsTrace
- type: IDEConstraintError
continueAfterRunningActions: true
- type: IDETestFailure
- type: RuntimeIssue
targets:
Legacy:
type: ""
platform: iOS
legacy:
toolPath: /usr/bin/true
passSettings: true
App_macOS:
type: application
platform: macOS
scheme: {}
info:
path: App_macOS/App-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
copy:
destination: plugins
subpath: "test"
- target: XPC Service
- target: NetworkSystemExtension
- target: EndpointSecuritySystemExtension
- target: DriverKitDriver
- sdk: Contacts.framework
- sdk: libc++.tbd
- sdk: libz.dylib
putResourcesBeforeSourcesBuildPhase: true
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"
- "Model.xcmappingmodel"
- "Configuration.storekit"
- path: App_iOS
name: App
includes:
- "Model.xcmappingmodel"
- path: StandaloneFiles/Standalone.swift
- FileGroup/UnderFileGroup
- Resources/MyBundle.bundle
- Resources/SceneKitCatalog.scnassets
- Resources/GoogleService-Info.plist
- path: Resources/ResourceFolder
type: folder
- path: Folder
type: folder
buildPhase: none
group: CustomGroup
- path: Mintfile
type: file
buildPhase: none
group: CustomGroup
- path: Group/File1.swift
group: CustomGroup
- path: Group2/File2.swift
group: CustomGroup
- path: CopyFiles
buildPhase:
copyFiles:
destination: productsDirectory
subpath: include/$(PRODUCT_NAME)
- path: Resources/example.mp4
buildPhase: resources
resourceTags:
- tag1
- tag2
- String Catalogs/Localizable.xcstrings
settings:
INFOPLIST_FILE: App_iOS/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.project.app
dependencies:
- target: Framework_iOS
platformFilter: all
- target: StaticLibrary_ObjC_iOS
- carthage: Result
platformFilter: macOS
- carthage: SwiftyJSON
linkType: static
platformFilter: iOS
- target: Framework2_iOS
weak: true
platformFilter: iOS
- target: App_watchOS
- target: iMessageApp
- sdk: Contacts.framework
- bundle: BundleX.bundle
- { bundle: BundleY.bundle, codeSign: false }
- target: AnotherProject/ExternalTarget
- target: App_Clip
- package: Swinject
product: Swinject
platformFilter: iOS
# https://github.com/yonaskolb/XcodeGen/issues/1232
# After GitHub Actions start supporting Xcode 14, an example for extensionKit should be added.
# - target: ExtensionKitExtension
onlyCopyFilesOnInstall: true
scheme:
testTargets:
- App_iOS_Tests
- App_iOS_UITests
gatherCoverageData: true
coverageTargets:
- App_iOS
disableMainThreadChecker: true
stopOnEveryMainThreadCheckerIssue: true
configVariants:
- Test
- Staging
- Production
commandLineArguments:
MyEnabledArgument: true
MyDisabledArgument: false
storeKitConfiguration: "App_iOS/Configuration.storekit"
postbuildScripts:
- path: scripts/strip-frameworks.sh
name: Strip Unused Architectures from Frameworks
runOnlyWhenInstalling: true
basedOnDependencyAnalysis: false
- name: MyScript
script: |
echo "You ran a script!"
touch "${DERIVED_FILE_DIR}/target.d"
inputFileLists:
- App_iOS/inputList.xcfilelist
outputFileLists:
- App_iOS/outputList.xcfilelist
discoveredDependencyFile: $(DERIVED_FILE_DIR)/target.d
EntitledApp:
type: application
platform: iOS
entitlements:
path: App_iOS/App.entitlements
properties:
com.apple.security.application-groups: group.com.app
App_supportedDestinations:
type: application
supportedDestinations: [iOS, tvOS]
info:
path: App_supportedDestinations/Info.generated.plist
properties:
CFBundleDisplayName: "TestApp"
CFBundleVersion: "1.0.0"
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.test.TestApp
sources:
- path: App_supportedDestinations/Sources
group: App_supportedDestinations
inferDestinationFiltersByPath: true
- path: App_supportedDestinations/Storyboards
group: App_supportedDestinations
destinationFilters: [iOS]
dependencies:
- package: Swinject
product: Swinject
destinationFilters: [tvOS]
App_watchOS:
type: application.watchapp2
platform: watchOS
deploymentTarget: 4.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: iMessageApp
scheme: {}
dependencies:
- target: iMessageExtension
iMessageExtension:
type: app-extension.messages
platform: iOS
sources: iMessageExtension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.iMessageApp.extension
scheme: {}
iMessageStickersExtension:
type: app-extension.messages-sticker-pack
platform: iOS
sources:
- path: iMessageStickers
DriverKitDriver:
platform: macOS
type: driver-extension
sources:
- DriverKit Driver
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.App-macOS.Driver
CODE_SIGN_ENTITLEMENTS: DriverKit Driver/Driver.entitlements
SDKROOT: driverkit
DRIVERKIT_DEPLOYMENT_TARGET: 20.4
scheme: {}
dependencies:
- sdk: DriverKit.framework
NetworkSystemExtension:
platform: macOS
type: system-extension
sources:
- Network Extension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.App-macOS.NetworkExtension
CODE_SIGN_ENTITLEMENTS: Network Extension/NetworkExtension.entitlements
scheme: {}
dependencies:
- sdk: NetworkExtension.framework
EndpointSecuritySystemExtension:
platform: macOS
type: system-extension
sources:
- EndpointSecurity Extension
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.project.App-macOS.EndpointSecurity
CODE_SIGN_ENTITLEMENTS: EndpointSecurity Extension/EndpointSecurity.entitlements
scheme: {}
dependencies:
- sdk: libEndpointSecurity.tbd
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}
- target: Framework2_${platform}
platforms: [tvOS, watchOS]
Framework2:
type: framework
platform: [iOS, tvOS, watchOS, macOS]
sources:
- path: Framework
excludes:
- "*.xcodeproj"
TestFramework:
type: framework
platform: iOS
sources:
- path: Framework
excludes:
- "*.xcodeproj"
dependencies:
- sdk: Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework
root: DEVELOPER_DIR
CrossOverlayFramework:
type: framework
platform: [iOS, tvOS, watchOS, macOS]
sources:
- path: CrossOverlayFramework
excludes:
- "*.xcodeproj"
App_iOS_Tests:
type: bundle.unit-test
platform: iOS
sources: App_iOS_Tests
dependencies:
- target: App_iOS
- target: TestFramework
- carthage: swift-tagged
linkType: static
App_iOS_UITests:
type: bundle.ui-testing
platform: iOS
sources: App_iOS_UITests
dependencies:
- target: App_iOS
App_macOS_Tests:
type: bundle.unit-test
platform: macOS
sources: App_macOS_Tests
dependencies:
- target: App_macOS
XPC Service:
type: xpc-service
platform: macOS
sources:
- path: XPC Service
Tool:
type: tool
platform: macOS
sources: [Tool]
scheme: {}
App_Clip:
type: application.on-demand-install-capable
platform: iOS
entitlements:
path: App_Clip/Clip.entitlements
properties:
com.apple.developer.parent-application-identifiers: [$(AppIdentifierPrefix)com.project.appwithclip]
com.apple.security.application-groups: group.com.app
sources:
App_Clip
settings:
INFOPLIST_FILE: App_Clip/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.project.app.clip
dependencies:
- target: Framework_iOS
- target: StaticLibrary_ObjC_iOS
- target: AnotherProject/ExternalTarget
scheme:
testTargets:
- App_Clip_Tests
- App_Clip_UITests
App_Clip_Tests:
type: bundle.unit-test
platform: iOS
sources: App_iOS_Tests
dependencies:
- target: App_Clip
- target: TestFramework
- carthage: swift-tagged
linkType: static
App_Clip_UITests:
type: bundle.ui-testing
platform: iOS
sources: App_Clip_UITests
dependencies:
- target: App_Clip
# https://github.com/yonaskolb/XcodeGen/issues/1232
# After GitHub Actions start supporting Xcode 14, an example for extensionKit should be added.
# ExtensionKitExtension:
# type: extensionkit-extension
# platform: iOS
# sources: ExtensionKit Extension
schemes:
Framework:
build:
parallelizeBuild: false
buildImplicitDependencies: false
targets:
Framework_iOS: all
preActions:
- script: echo Starting Framework Build
settingsTarget: Framework_iOS
runPostActionsOnFailure: true
run:
commandLineArguments:
argument: YES
argument.with.dot: YES
test:
gatherCoverageData: true
language: ja
region: en
App_Scheme:
build:
targets:
App_iOS: all
run:
simulateLocation:
allow: true
defaultLocation: Honolulu, HI, USA
customLLDBInit: ${SRCROOT}/.lldbinit
enableGPUFrameCaptureMode: "disabled"
enableGPUValidationMode: "disabled"
storeKitConfiguration: "App_iOS/Configuration.storekit"
macroExpansion: App_iOS
test:
gatherCoverageData: true
targets:
- App_iOS_UITests
- name: App_iOS_Tests
parallelizable: true
randomExecutionOrder: true
location: New York, NY, USA
customLLDBInit: ${SRCROOT}/.lldbinit
testPlans:
- path: App_iOS/App_iOS.xctestplan
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"