Build Information
Failed to build ProxyResolver, reference master (3eef3c
), with Swift 6.0 for Linux on 26 Nov 2024 14:39:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rinold/ProxyResolver.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/rinold/ProxyResolver
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3eef3cb Merge pull request #4 from rinold/develop
Cloned https://github.com/rinold/ProxyResolver.git
Revision (git rev-parse @):
3eef3cb2fbe766bc503f3e46c10c4b24fb8a4318
SUCCESS checkout https://github.com/rinold/ProxyResolver.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/rinold/ProxyResolver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module ProxyResolver
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:18:29: error: cannot find type 'CFString' in scope
16 | case socks
17 |
18 | init?(from cfProxyType: CFString) {
| `- error: cannot find type 'CFString' in scope
19 | switch cfProxyType {
20 | case kCFProxyTypeNone:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:58:52: error: cannot find type 'CFString' in scope
56 |
57 | final class SystemProxyConfigProvider: ProxyConfigProvider {
58 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]? {
| `- error: cannot find type 'CFString' in scope
59 | guard let systemSettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else { return nil }
60 | let cfProxies = CFNetworkCopyProxiesForURL(url as CFURL, systemSettings).takeRetainedValue()
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:80:52: error: cannot find type 'CFString' in scope
78 |
79 | public protocol ProxyConfigProvider {
80 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]?
| `- error: cannot find type 'CFString' in scope
81 | }
82 |
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:68:25: error: cannot find type 'URLRequest' in scope
66 |
67 | final class URLSessionFetcher: ProxyScriptFether {
68 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
69 | let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
70 | if error == nil, let data = data, let scriptContents = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:86:25: error: cannot find type 'URLRequest' in scope
84 |
85 | public protocol ProxyScriptFether {
86 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void)
| `- error: cannot find type 'URLRequest' in scope
87 | }
88 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:189:37: error: cannot find type 'CFString' in scope
187 | // MARK: Internal Methods
188 |
189 | func resolveProxy(from config: [CFString: AnyObject], for url: URL,
| `- error: cannot find type 'CFString' in scope
190 | completion: @escaping (ProxyResolutionResult) -> Void) {
191 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:287:56: error: cannot find type 'CFString' in scope
285 | }
286 |
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
| `- error: cannot find type 'CFString' in scope
288 | var error: Unmanaged<CFError>?
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
[4/5] Compiling ProxyResolver ProxyResolver.swift
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:80:52: error: cannot find type 'CFString' in scope
78 |
79 | public protocol ProxyConfigProvider {
80 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]?
| `- error: cannot find type 'CFString' in scope
81 | }
82 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:86:25: error: cannot find type 'URLRequest' in scope
84 |
85 | public protocol ProxyScriptFether {
86 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void)
| `- error: cannot find type 'URLRequest' in scope
87 | }
88 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:189:37: error: cannot find type 'CFString' in scope
187 | // MARK: Internal Methods
188 |
189 | func resolveProxy(from config: [CFString: AnyObject], for url: URL,
| `- error: cannot find type 'CFString' in scope
190 | completion: @escaping (ProxyResolutionResult) -> Void) {
191 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:287:56: error: cannot find type 'CFString' in scope
285 | }
286 |
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
| `- error: cannot find type 'CFString' in scope
288 | var error: Unmanaged<CFError>?
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:26:37: error: cannot find 'kSecClass' in scope
24 | extension Credentials {
25 | public static func get(for host: String) -> Credentials? {
26 | let query: [String: Any] = [kSecClass as String: kSecClassInternetPassword,
| `- error: cannot find 'kSecClass' in scope
27 | kSecAttrServer as String: host,
28 | kSecMatchLimit as String: kSecMatchLimitOne,
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:26:58: error: cannot find 'kSecClassInternetPassword' in scope
24 | extension Credentials {
25 | public static func get(for host: String) -> Credentials? {
26 | let query: [String: Any] = [kSecClass as String: kSecClassInternetPassword,
| `- error: cannot find 'kSecClassInternetPassword' in scope
27 | kSecAttrServer as String: host,
28 | kSecMatchLimit as String: kSecMatchLimitOne,
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:27:37: error: cannot find 'kSecAttrServer' in scope
25 | public static func get(for host: String) -> Credentials? {
26 | let query: [String: Any] = [kSecClass as String: kSecClassInternetPassword,
27 | kSecAttrServer as String: host,
| `- error: cannot find 'kSecAttrServer' in scope
28 | kSecMatchLimit as String: kSecMatchLimitOne,
29 | kSecReturnAttributes as String: true,
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:28:37: error: cannot find 'kSecMatchLimit' in scope
26 | let query: [String: Any] = [kSecClass as String: kSecClassInternetPassword,
27 | kSecAttrServer as String: host,
28 | kSecMatchLimit as String: kSecMatchLimitOne,
| `- error: cannot find 'kSecMatchLimit' in scope
29 | kSecReturnAttributes as String: true,
30 | kSecReturnData as String: true]
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:28:63: error: cannot find 'kSecMatchLimitOne' in scope
26 | let query: [String: Any] = [kSecClass as String: kSecClassInternetPassword,
27 | kSecAttrServer as String: host,
28 | kSecMatchLimit as String: kSecMatchLimitOne,
| `- error: cannot find 'kSecMatchLimitOne' in scope
29 | kSecReturnAttributes as String: true,
30 | kSecReturnData as String: true]
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:29:37: error: cannot find 'kSecReturnAttributes' in scope
27 | kSecAttrServer as String: host,
28 | kSecMatchLimit as String: kSecMatchLimitOne,
29 | kSecReturnAttributes as String: true,
| `- error: cannot find 'kSecReturnAttributes' in scope
30 | kSecReturnData as String: true]
31 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:30:37: error: cannot find 'kSecReturnData' in scope
28 | kSecMatchLimit as String: kSecMatchLimitOne,
29 | kSecReturnAttributes as String: true,
30 | kSecReturnData as String: true]
| `- error: cannot find 'kSecReturnData' in scope
31 |
32 | var item: CFTypeRef?
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:32:19: error: cannot find type 'CFTypeRef' in scope
30 | kSecReturnData as String: true]
31 |
32 | var item: CFTypeRef?
| `- error: cannot find type 'CFTypeRef' in scope
33 | let status = SecItemCopyMatching(query as CFDictionary, &item)
34 | guard status == errSecSuccess else { return nil }
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:33:22: error: cannot find 'SecItemCopyMatching' in scope
31 |
32 | var item: CFTypeRef?
33 | let status = SecItemCopyMatching(query as CFDictionary, &item)
| `- error: cannot find 'SecItemCopyMatching' in scope
34 | guard status == errSecSuccess else { return nil }
35 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:33:51: error: cannot find type 'CFDictionary' in scope
31 |
32 | var item: CFTypeRef?
33 | let status = SecItemCopyMatching(query as CFDictionary, &item)
| `- error: cannot find type 'CFDictionary' in scope
34 | guard status == errSecSuccess else { return nil }
35 |
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:34:25: error: cannot find 'errSecSuccess' in scope
32 | var item: CFTypeRef?
33 | let status = SecItemCopyMatching(query as CFDictionary, &item)
34 | guard status == errSecSuccess else { return nil }
| `- error: cannot find 'errSecSuccess' in scope
35 |
36 | guard let existingItem = item as? [String : Any],
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:37:45: error: cannot find 'kSecValueData' in scope
35 |
36 | guard let existingItem = item as? [String : Any],
37 | let passwordData = existingItem[kSecValueData as String] as? Data,
| `- error: cannot find 'kSecValueData' in scope
38 | let password = String(data: passwordData, encoding: .utf8),
39 | let account = existingItem[kSecAttrAccount as String] as? String
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:39:40: error: cannot find 'kSecAttrAccount' in scope
37 | let passwordData = existingItem[kSecValueData as String] as? Data,
38 | let password = String(data: passwordData, encoding: .utf8),
39 | let account = existingItem[kSecAttrAccount as String] as? String
| `- error: cannot find 'kSecAttrAccount' in scope
40 | else {
41 | return nil
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:192:43: error: cannot find 'kCFProxyTypeKey' in scope
190 | completion: @escaping (ProxyResolutionResult) -> Void) {
191 |
192 | guard let proxyTypeValue = config[kCFProxyTypeKey] else {
| `- error: cannot find 'kCFProxyTypeKey' in scope
193 | let error = ProxyResolutionError.unexpectedError(nil)
194 | completion(.error(error))
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:197:46: error: cannot find type 'CFString' in scope
195 | return
196 | }
197 | let cfProxyType = proxyTypeValue as! CFString
| `- error: cannot find type 'CFString' in scope
198 | guard let configProxyType = ConfigProxyType(from: cfProxyType) else {
199 | let error = ProxyResolutionError.proxyTypeUnsupported(cfProxyType as String)
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:18:29: error: cannot find type 'CFString' in scope
16 | case socks
17 |
18 | init?(from cfProxyType: CFString) {
| `- error: cannot find type 'CFString' in scope
19 | switch cfProxyType {
20 | case kCFProxyTypeNone:
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:206:48: error: cannot find 'kCFProxyAutoConfigurationURLKey' in scope
204 | switch configProxyType {
205 | case .autoConfigurationUrl:
206 | guard let cfAutoConfigUrl = config[kCFProxyAutoConfigurationURLKey],
| `- error: cannot find 'kCFProxyAutoConfigurationURLKey' in scope
207 | let scriptUrlString = cfAutoConfigUrl as? String,
208 | let scriptUrl = URL(string: scriptUrlString)
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:233:51: error: cannot find 'kCFProxyAutoConfigurationJavaScriptKey' in scope
231 |
232 | case .autoConfigurationScript:
233 | guard let cfAutoConfigScript = config[kCFProxyAutoConfigurationJavaScriptKey],
| `- error: cannot find 'kCFProxyAutoConfigurationJavaScriptKey' in scope
234 | let scriptContent = cfAutoConfigScript as? String
235 | else {
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:252:44: error: cannot find 'kCFProxyHostNameKey' in scope
250 |
251 | case .http, .https, .socks:
252 | guard let cfProxyHost = config[kCFProxyHostNameKey],
| `- error: cannot find 'kCFProxyHostNameKey' in scope
253 | let proxyHost = cfProxyHost as? String,
254 | let cfProxyPort = config[kCFProxyPortNumberKey],
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:254:42: error: cannot find 'kCFProxyPortNumberKey' in scope
252 | guard let cfProxyHost = config[kCFProxyHostNameKey],
253 | let proxyHost = cfProxyHost as? String,
254 | let cfProxyPort = config[kCFProxyPortNumberKey],
| `- error: cannot find 'kCFProxyPortNumberKey' in scope
255 | let proxyPort = (cfProxyPort as? NSNumber)?.uint32Value,
256 | let proxyType = ProxyType(from: configProxyType)
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:283:23: error: cannot find 'URLRequest' in scope
281 | }
282 |
283 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
284 | config.scriptFetcher.fetch(request: request, completion: completion)
285 | }
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:288:30: error: cannot find type 'CFError' in scope
286 |
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
288 | var error: Unmanaged<CFError>?
| `- error: cannot find type 'CFError' in scope
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
290 | guard error == nil,
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:289:27: error: cannot find 'CFNetworkCopyProxiesForAutoConfigurationScript' in scope
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
288 | var error: Unmanaged<CFError>?
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
| `- error: cannot find 'CFNetworkCopyProxiesForAutoConfigurationScript' in scope
290 | guard error == nil,
291 | let cfProxies = proxiesCopy?.takeRetainedValue(),
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:289:84: error: cannot find type 'CFString' in scope
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
288 | var error: Unmanaged<CFError>?
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
| `- error: cannot find type 'CFString' in scope
290 | guard error == nil,
291 | let cfProxies = proxiesCopy?.takeRetainedValue(),
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:289:101: error: cannot find type 'CFURL' in scope
287 | func executePac(script: String, for url: URL) -> [[CFString: AnyObject]]? {
288 | var error: Unmanaged<CFError>?
289 | let proxiesCopy = CFNetworkCopyProxiesForAutoConfigurationScript(script as CFString, url as CFURL, &error)
| `- error: cannot find type 'CFURL' in scope
290 | guard error == nil,
291 | let cfProxies = proxiesCopy?.takeRetainedValue(),
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:292:43: error: cannot find type 'CFString' in scope
290 | guard error == nil,
291 | let cfProxies = proxiesCopy?.takeRetainedValue(),
292 | let proxies = cfProxies as? [[CFString: AnyObject]]
| `- error: cannot find type 'CFString' in scope
293 | else {
294 | return nil
[5/5] Compiling ProxyResolver Types.swift
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:18:29: error: cannot find type 'CFString' in scope
16 | case socks
17 |
18 | init?(from cfProxyType: CFString) {
| `- error: cannot find type 'CFString' in scope
19 | switch cfProxyType {
20 | case kCFProxyTypeNone:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:58:52: error: cannot find type 'CFString' in scope
56 |
57 | final class SystemProxyConfigProvider: ProxyConfigProvider {
58 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]? {
| `- error: cannot find type 'CFString' in scope
59 | guard let systemSettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else { return nil }
60 | let cfProxies = CFNetworkCopyProxiesForURL(url as CFURL, systemSettings).takeRetainedValue()
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:80:52: error: cannot find type 'CFString' in scope
78 |
79 | public protocol ProxyConfigProvider {
80 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]?
| `- error: cannot find type 'CFString' in scope
81 | }
82 |
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:68:25: error: cannot find type 'URLRequest' in scope
66 |
67 | final class URLSessionFetcher: ProxyScriptFether {
68 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
69 | let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
70 | if error == nil, let data = data, let scriptContents = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/ProxyResolver/Classes/ProxyResolver.swift:86:25: error: cannot find type 'URLRequest' in scope
84 |
85 | public protocol ProxyScriptFether {
86 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void)
| `- error: cannot find type 'URLRequest' in scope
87 | }
88 |
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:20:14: error: cannot find 'kCFProxyTypeNone' in scope
18 | init?(from cfProxyType: CFString) {
19 | switch cfProxyType {
20 | case kCFProxyTypeNone:
| `- error: cannot find 'kCFProxyTypeNone' in scope
21 | self = .none
22 | case kCFProxyTypeAutoConfigurationURL:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:22:14: error: cannot find 'kCFProxyTypeAutoConfigurationURL' in scope
20 | case kCFProxyTypeNone:
21 | self = .none
22 | case kCFProxyTypeAutoConfigurationURL:
| `- error: cannot find 'kCFProxyTypeAutoConfigurationURL' in scope
23 | self = .autoConfigurationUrl
24 | case kCFProxyTypeAutoConfigurationJavaScript:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:24:14: error: cannot find 'kCFProxyTypeAutoConfigurationJavaScript' in scope
22 | case kCFProxyTypeAutoConfigurationURL:
23 | self = .autoConfigurationUrl
24 | case kCFProxyTypeAutoConfigurationJavaScript:
| `- error: cannot find 'kCFProxyTypeAutoConfigurationJavaScript' in scope
25 | self = .autoConfigurationScript
26 | case kCFProxyTypeHTTP:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:26:14: error: cannot find 'kCFProxyTypeHTTP' in scope
24 | case kCFProxyTypeAutoConfigurationJavaScript:
25 | self = .autoConfigurationScript
26 | case kCFProxyTypeHTTP:
| `- error: cannot find 'kCFProxyTypeHTTP' in scope
27 | self = .http
28 | case kCFProxyTypeHTTPS:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:28:14: error: cannot find 'kCFProxyTypeHTTPS' in scope
26 | case kCFProxyTypeHTTP:
27 | self = .http
28 | case kCFProxyTypeHTTPS:
| `- error: cannot find 'kCFProxyTypeHTTPS' in scope
29 | self = .https
30 | case kCFProxyTypeSOCKS:
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:30:14: error: cannot find 'kCFProxyTypeSOCKS' in scope
28 | case kCFProxyTypeHTTPS:
29 | self = .https
30 | case kCFProxyTypeSOCKS:
| `- error: cannot find 'kCFProxyTypeSOCKS' in scope
31 | self = .socks
32 |
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:59:36: error: cannot find 'CFNetworkCopySystemProxySettings' in scope
57 | final class SystemProxyConfigProvider: ProxyConfigProvider {
58 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]? {
59 | guard let systemSettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else { return nil }
| `- error: cannot find 'CFNetworkCopySystemProxySettings' in scope
60 | let cfProxies = CFNetworkCopyProxiesForURL(url as CFURL, systemSettings).takeRetainedValue()
61 | return cfProxies as? [[CFString: AnyObject]]
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:60:25: error: cannot find 'CFNetworkCopyProxiesForURL' in scope
58 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]? {
59 | guard let systemSettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else { return nil }
60 | let cfProxies = CFNetworkCopyProxiesForURL(url as CFURL, systemSettings).takeRetainedValue()
| `- error: cannot find 'CFNetworkCopyProxiesForURL' in scope
61 | return cfProxies as? [[CFString: AnyObject]]
62 | }
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:60:59: error: cannot find type 'CFURL' in scope
58 | func getSystemConfigProxies(for url: URL) -> [[CFString: AnyObject]]? {
59 | guard let systemSettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else { return nil }
60 | let cfProxies = CFNetworkCopyProxiesForURL(url as CFURL, systemSettings).takeRetainedValue()
| `- error: cannot find type 'CFURL' in scope
61 | return cfProxies as? [[CFString: AnyObject]]
62 | }
/host/spi-builder-workspace/ProxyResolver/Classes/Internal/Types.swift:69:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
67 | final class URLSessionFetcher: ProxyScriptFether {
68 | func fetch(request: URLRequest, completion: @escaping (String?, Error?) -> Void) {
69 | let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | if error == nil, let data = data, let scriptContents = String(data: data, encoding: .utf8) {
71 | completion(scriptContents, nil)
BUILD FAILURE 6.0 linux