Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Oct 22, 2019
1 parent 2166a03 commit 80808d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/XcodeGenCLI/GenerateCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class GenerateCommand: Command {
let xcodeProject: XcodeProj
do {
let projectGenerator = ProjectGenerator(project: project)
xcodeProject = try projectGenerator.generateXcodeProject(to: projectDirectory)
xcodeProject = try projectGenerator.generateXcodeProject(in: projectDirectory)
} catch {
throw GenerationError.generationError(error)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/XcodeGenKit/ProjectGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ProjectGenerator {
self.project = project
}

public func generateXcodeProject(to projectDirectory: Path? = nil) throws -> XcodeProj {
public func generateXcodeProject(in projectDirectory: Path? = nil) throws -> XcodeProj {

// generate PBXProj
let pbxProjGenerator = PBXProjGenerator(project: project,
Expand Down
2 changes: 1 addition & 1 deletion Tests/XcodeGenKitTests/ProjectGeneratorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ class ProjectGeneratorTests: XCTestCase {
let destinationPath = fixturePath
let project = Project(name: "test", targets: [frameworkWithSources])
let generator = ProjectGenerator(project: project)
let generatedProject = try generator.generateXcodeProject(to: destinationPath)
let generatedProject = try generator.generateXcodeProject(in: destinationPath)
let group = generatedProject.pbxproj.groups.first(where: { $0.nameOrPath == groupName })
try expect(group?.path) == "TestProject/App_iOS"
}
Expand Down

0 comments on commit 80808d6

Please sign in to comment.