diff --git a/Package.resolved b/Package.resolved index cec999f..512ec7e 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/luoxiu/Rainbow", "state": { "branch": null, - "revision": "9bc8fa136c8cec2f4a5c8ad1e8d37753e05db9d5", - "version": "0.1.0" + "revision": "9d8fcb4c64e816a135c31162a0c319e9f1f09c35", + "version": "0.1.1" } } ] diff --git a/Sources/Chalk/TerminalSupportedColor.swift b/Sources/Chalk/TerminalSupportedColor.swift index 4e86367..f6ce594 100644 --- a/Sources/Chalk/TerminalSupportedColor.swift +++ b/Sources/Chalk/TerminalSupportedColor.swift @@ -29,6 +29,10 @@ public enum TerminalSupportedColor { let env = ProcessInfo.processInfo.environment + if let name = env["XPC_SERVICE_NAME"], name.starts(with: "com.apple.dt.Xcode") { + return .none + } + if env["CI"] != nil { for ci in ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"] { if env[ci] != nil { return .ansi16 }