mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
No need carthage copy-frameworks for macOS app (#76)
* No need carthage copy-frameworks for macOS * Update CHANGELOG.md
This commit is contained in:
committed by
Yonas Kolb
parent
6901f8b325
commit
4227ac243e
@@ -383,7 +383,7 @@ public class PBXProjGenerator {
|
||||
|
||||
if !carthageFrameworks.isEmpty {
|
||||
|
||||
if target.type.isApp {
|
||||
if target.type.isApp && target.platform != .macOS {
|
||||
let inputPaths = carthageFrameworks.map { "$(SRCROOT)/\(carthageBuildPath)/\(target.platform)/\($0)\($0.contains(".") ? "" : ".framework")" }
|
||||
let carthageScript = PBXShellScriptBuildPhase(reference: generateUUID(PBXShellScriptBuildPhase.self, "Carthage" + target.name), files: [], name: "Carthage", inputPaths: inputPaths, outputPaths: [], shellPath: "/bin/sh", shellScript: "/usr/local/bin/carthage copy-frameworks\n")
|
||||
addObject(carthageScript)
|
||||
|
||||
Reference in New Issue
Block a user