We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ec7e7 commit 507cb33Copy full SHA for 507cb33
Example/Example/main.swift
@@ -8,9 +8,14 @@
8
9
import Foundation
10
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")
+let args = Process.arguments
+
13
+if args.count < 2 {
14
+ fatalError("Call with current directory: $SRCROOT")
15
+}
16
17
+// The xcodeproj file to load, test this with your own project!
18
+let xcodeproj = NSURL(fileURLWithPath: "\(args[1])/../Test projects/Security.xcodeproj")
19
20
// Load from a xcodeproj
21
let proj = try! XCProjectFile(xcodeprojURL: xcodeproj)
0 commit comments