 import Foundation
 import Commander
 import Rainbow
-
-// target:
 
 private let cartfile = "Cartfile"
 private let pbxproj  = "project.pbxproj"

    guard let objects = dic["objects"] as? [String: Any] else { return }
    var objectsToWrite = objects

    var found = false
    var key = ""

    var currentInputPaths: [String] = []

    for (k, v) in objects {
        guard let dd = v as? [String: Any] else { continue }

        guard let isa = dd["isa"] as? String else { continue }
        guard isa == "PBXShellScriptBuildPhase" else { continue }

        guard let shellScript = dd["shellScript"] as? String else { continue }
        guard shellScript.hasSuffix("copy-frameworks") else { continue }
        guard let inputPaths = dd["inputPaths"] as? [String] else { continue }

        currentInputPaths = inputPaths

        found = true
        key = k
    }

    if !found {
        print("This project has no run scripts for Carthage".red)
        print("[Xcode] -> [Targets] -> [Build Phases]: [+ New Run Script Phase]")
        print("and add this command `/usr/local/bin/carthage copy-frameworks`")
        return

        tmp.forEach { print($0.green) }

        print("\nis it OK? [[y]/n]")
        print("Please type the number if there are any frameworks you would like to exclude. (Example: 1, 3)".blue)
        guard let yesno = readLine() else { return }

        if yesno == "y" || yesno.isEmpty {
