mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-11 12:56:03 +03:00
Resolve Info.plist path
This commit is contained in:
parent
5b5d0e917e
commit
edac4a355b
@ -9,6 +9,7 @@ public class PBXProjGenerator {
|
||||
let project: Project
|
||||
|
||||
let pbxProj: PBXProj
|
||||
let projectDirectory: Path?
|
||||
let carthageResolver: CarthageDependencyResolver
|
||||
|
||||
var sourceGenerator: SourceGenerator!
|
||||
@ -28,6 +29,7 @@ public class PBXProjGenerator {
|
||||
self.project = project
|
||||
carthageResolver = CarthageDependencyResolver(project: project)
|
||||
pbxProj = PBXProj(rootObject: nil, objectVersion: project.objectVersion)
|
||||
self.projectDirectory = projectDirectory
|
||||
sourceGenerator = SourceGenerator(project: project,
|
||||
pbxProj: pbxProj,
|
||||
projectDirectory: projectDirectory)
|
||||
@ -861,7 +863,7 @@ public class PBXProjGenerator {
|
||||
searchForPlist = false
|
||||
}
|
||||
if let plistPath = plistPath {
|
||||
buildSettings["INFOPLIST_FILE"] = (try? plistPath.relativePath(from: project.basePath)) ?? plistPath
|
||||
buildSettings["INFOPLIST_FILE"] = (try? plistPath.relativePath(from: projectDirectory ?? project.basePath)) ?? plistPath
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user