Merge pull request #507 from BalestraPatrick/patch-1

Add example code for build rules
This commit is contained in:
Yonas Kolb
2019-02-02 10:59:35 +11:00
committed by GitHub
+14
View File
@@ -487,6 +487,20 @@ targets:
- [ ] **outputFiles**: **[String]** - The list of output files
- [ ] **outputFilesCompilerFlags**: **[String]** - The list of compiler flags to apply to the output files
```yaml
targets:
MyTarget:
buildRules:
- filePattern: "*.xcassets"
script: generate_assets.py
- fileType: sourcecode.swift
script: pre_process_swift.py
- filePattern: "*.txt"
name: My Build Rule
compilerSpec: com.apple.xcode.tools.swift.compiler
outputFiles:
- $(SRCROOT)/Generated.swift
```
### Target Scheme