Skip to content

Commit 2709405

Browse files
committed
Update Readme
1 parent b13a1a3 commit 2709405

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ The main goal of this project is to generate `project.pbxproj` files in the lega
88
Currently, this project is mostly used to support [R.swift](https://github.com/mac-cain13/R.swift).
99

1010

11+
Usage
12+
-----
13+
14+
This reads a xcodeproj file (possibly in XML format), and writes it back out in OpenStep format:
15+
16+
```swift
17+
let xcodeproj = NSURL(fileURLWithPath: "Test.xcodeproj")
18+
19+
let proj = try! XCProjectFile(xcodeprojURL: xcodeproj)
20+
21+
try! proj.writeToXcodeproj(xcodeprojURL: xcodeproj, format: NSPropertyListFormat.OpenStepFormat)
22+
```
23+
24+
1125
Releases
1226
--------
1327

0 commit comments

Comments
 (0)