Skip to content

Commit 507cb33

Browse files
committed
Use Test project in example
1 parent 70ec7e7 commit 507cb33

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Example/Example/main.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88

99
import Foundation
1010

11-
// The xcodeproj file to load, test this with your own project!
12-
let xcodeproj = NSURL(fileURLWithPath: "/Users/tom/Projects/Xcode.swift/Example/Test.xcodeproj")
11+
let args = Process.arguments
12+
13+
if args.count < 2 {
14+
fatalError("Call with current directory: $SRCROOT")
15+
}
1316

17+
// The xcodeproj file to load, test this with your own project!
18+
let xcodeproj = NSURL(fileURLWithPath: "\(args[1])/../Test projects/Security.xcodeproj")
1419

1520
// Load from a xcodeproj
1621
let proj = try! XCProjectFile(xcodeprojURL: xcodeproj)

0 commit comments

Comments
 (0)