mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Extend possible paths for SettingsPresets (#1135)
* Search for presets in Bundle.main.resourcesPath dir (if exists)
This commit is contained in:
@@ -193,6 +193,10 @@ extension SettingsPresetFile {
|
||||
Path(#file).parent().parent().parent() + relativePath,
|
||||
]
|
||||
|
||||
if let resourcePath = Bundle.main.resourcePath {
|
||||
possibleSettingsPaths.append(Path(resourcePath) + relativePath)
|
||||
}
|
||||
|
||||
if let symlink = try? (bundlePath + "xcodegen").symlinkDestination() {
|
||||
possibleSettingsPaths = [
|
||||
symlink.parent() + relativePath,
|
||||
|
||||
Reference in New Issue
Block a user