Skip to content

Commit

Permalink
Correct scheme write path
Browse files Browse the repository at this point in the history
  • Loading branch information
dangthaison91 committed May 7, 2019
1 parent d9d950d commit 70c138f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/TuistGenerator/Generator/SchemesGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ final class SchemesGenerator: SchemesGenerating {
path = projectPath.appending(RelativePath("xcshareddata/xcschemes"))
} else {
let username = NSUserName()
path = projectPath.appending(RelativePath("\(username).xcuserdatad/xcschemes"))
path = projectPath.appending(RelativePath("xcuserdata/\(username).xcuserdatad/xcschemes"))
}
if !fileHandler.exists(path) {
try fileHandler.createFolder(path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class ProjectGeneratorTests: XCTestCase {
XCTAssertTrue(fileHandler.exists(scheme))

let username = NSUserName()
let userSchemesPath = got.path.appending(RelativePath("\(username).xcuserdatad/xcschemes"))
let userSchemesPath = got.path.appending(RelativePath("xcuserdata/\(username).xcuserdatad/xcschemes"))
let userScheme = userSchemesPath.appending(component: "Target-Local.xcscheme")
XCTAssertTrue(fileHandler.exists(userScheme))
}
Expand Down

0 comments on commit 70c138f

Please sign in to comment.