                 carthage.body.inputPaths = inputPathsString
                 carthage.body.outputPaths = outputPathsString
                 carthage.body.shellScript = Keys.carthageScript
+                print("✅ Script \"\(carthageScriptName)\" in target \"\(target.name)\" was successfully updated.")
+                projectHasBeenUpdated = true
             }
             else if linkedCarthageFrameworkNames.count > 0 {
                 let body = ScriptBody(inputPaths: inputPathsString,

        
        let carthageScriptName = arguments.count > 1 ? arguments[1] : Keys.defaultScriptName
        
        try project.targets.forEach { target in
            let frameworkBuildPhase = target.body.buildPhases.first { $0.name == "Frameworks" }
            let frameworkScript = project.frameworkScripts.first { $0.identifier == frameworkBuildPhase?.identifier }

                let buildPhase = BuildPhase(identifier: identifier, name: carthageScriptName)
                project.scripts.append(script)
                target.body.buildPhases.append(buildPhase)
                print("✅ Script \(carthageScriptName) was successfully added to \(target.name) target.")
                projectHasBeenUpdated = true
            }
        }
        
        try projectService.update(project)
        if !projectHasBeenUpdated {
            print("🤷‍♂️ Nothing to update.")
        }
    }
}

