Use full path for XcodeProj

This solves issue with relative project path.
This commit is contained in:
Kamil Pyć
2020-01-07 14:20:16 +01:00
committed by GitHub
parent 058e084e5b
commit 9bf657cb1d
+2 -1
View File
@@ -1,6 +1,7 @@
import Foundation
import ProjectSpec
import XcodeProj
import PathKit
private func suitableConfig(for type: ConfigType, in project: Project) -> Config {
if let defaultConfig = Config.defaultConfigs.first(where: { $0.type == type }),
@@ -34,7 +35,7 @@ public class SchemeGenerator {
if let cachedProject = projects[reference] {
return cachedProject
}
let pbxproj = try XcodeProj(pathString: reference.path).pbxproj
let pbxproj = try XcodeProj(path: project.basePath + Path(reference.path)).pbxproj
projects[reference] = pbxproj
return pbxproj
}