No need carthage copy-frameworks for macOS app (#76)

* No need carthage copy-frameworks for macOS

* Update CHANGELOG.md
This commit is contained in:
Toshihiro Suzuki
2017-09-29 17:51:08 +02:00
committed by Yonas Kolb
parent 6901f8b325
commit 4227ac243e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@
### Fixed
- Fixed wrong carthage directory name reference for macOS [#74](https://github.com/yonaskolb/XcodeGen/pull/74)
- Removed unnecessary `carthage copy-frameworks` for macOS app target [#76](https://github.com/yonaskolb/XcodeGen/pull/76)
## 1.2.2
+1 -1
View File
@@ -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)