mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Merge pull request #507 from BalestraPatrick/patch-1
Add example code for build rules
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user