Build Information
Failed to build JNetworkManager, reference main (2ead1d
), with Swift 5.10 for macOS (SPM) on 4 Nov 2024 13:01:00 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeetrajput01/JNetworkManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jeetrajput01/JNetworkManager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2ead1dc update new version information
Cloned https://github.com/jeetrajput01/JNetworkManager.git
Revision (git rev-parse @):
2ead1dcbd53792eabf7093061b9193226610d85d
SUCCESS checkout https://github.com/jeetrajput01/JNetworkManager.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/jeetrajput01/JNetworkManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[0/4] Copying PrivacyInfo.xcprivacy
[2/4] Write sources
[3/4] Write swift-version-33747A42983211AE.txt
[5/44] Emitting module Alamofire
[6/48] Compiling Alamofire URLRequest+Alamofire.swift
[7/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[8/48] Compiling Alamofire AlamofireExtended.swift
[9/48] Compiling Alamofire AuthenticationInterceptor.swift
[10/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[11/48] Compiling Alamofire OperationQueue+Alamofire.swift
[12/48] Compiling Alamofire Result+Alamofire.swift
[13/48] Compiling Alamofire StringEncoding+Alamofire.swift
[14/48] Compiling Alamofire SessionDelegate.swift
[15/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[16/48] Compiling Alamofire UploadRequest.swift
[17/48] Compiling Alamofire WebSocketRequest.swift
[18/48] Compiling Alamofire HTTPHeaders.swift
[19/48] Compiling Alamofire HTTPMethod.swift
[20/48] Compiling Alamofire Notifications.swift
[21/48] Compiling Alamofire ParameterEncoder.swift
[22/48] Compiling Alamofire ParameterEncoding.swift
[23/48] Compiling Alamofire CachedResponseHandler.swift
[24/48] Compiling Alamofire Combine.swift
[25/48] Compiling Alamofire Concurrency.swift
[26/48] Compiling Alamofire EventMonitor.swift
[27/48] Compiling Alamofire RequestCompression.swift
[28/48] Compiling Alamofire RequestInterceptor.swift
[29/48] Compiling Alamofire ResponseSerialization.swift
[30/48] Compiling Alamofire RetryPolicy.swift
[31/48] Compiling Alamofire Alamofire.swift
[32/48] Compiling Alamofire AFError.swift
[33/48] Compiling Alamofire DataRequest.swift
[34/48] Compiling Alamofire DataStreamRequest.swift
[35/48] Compiling Alamofire DownloadRequest.swift
[36/48] Compiling Alamofire Protected.swift
[37/48] Compiling Alamofire Request.swift
[38/48] Compiling Alamofire RequestTaskMap.swift
[39/48] Compiling Alamofire Response.swift
[40/48] Compiling Alamofire Session.swift
[41/48] Compiling Alamofire MultipartFormData.swift
[42/48] Compiling Alamofire MultipartUpload.swift
[43/48] Compiling Alamofire NetworkReachabilityManager.swift
[44/48] Compiling Alamofire RedirectHandler.swift
[45/48] Compiling Alamofire ServerTrustEvaluation.swift
[46/48] Compiling Alamofire URLEncodedFormEncoder.swift
[47/48] Compiling Alamofire Validation.swift
[48/48] Compiling Alamofire resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/52] Compiling JNetworkManager Extension.swift
[50/52] Compiling JNetworkManager NetworkReachability.swift
[51/52] Emitting module JNetworkManager
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:24: note: add @available attribute to enclosing class method
private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:612:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:24: note: add @available attribute to enclosing class method
private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:612:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
[52/52] Compiling JNetworkManager JNetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:24: note: add @available attribute to enclosing class method
private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:612:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:24: note: add @available attribute to enclosing class method
private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:612:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:88:34: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:88:34: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:79:23: note: add @available attribute to enclosing class method
public class func makeAsyncRequest<T:Codable>(url: String, method: HTTPMethod, parameter: [String:Any]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type) async -> Result<T,Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:64:14: note: add @available attribute to enclosing class
public class JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:180:35: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:180:35: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:169:23: note: add @available attribute to enclosing class method
public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type, progressHandler: ((Double) -> Void)? = nil ) async -> Result<T, Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:64:14: note: add @available attribute to enclosing class
public class JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:269:34: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:269:34: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:259:23: note: add @available attribute to enclosing class method
public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type, progressHandler: ((Double) -> Void)? = nil) async -> Result<T, Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:64:14: note: add @available attribute to enclosing class
public class JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:359:34: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:359:34: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:350:23: note: add @available attribute to enclosing class method
public class func makeAsyncRequest(url: String, method: HTTPMethod, parameter: [String:Any]?,headers: [String: String] = [:],timeoutInterval: TimeInterval = 30) async -> Result<Any,Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:335:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:456:34: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:456:34: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:446:23: note: add @available attribute to enclosing class method
public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:335:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:544:34: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:544:34: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:534:23: note: add @available attribute to enclosing class method
public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:335:1: note: add @available attribute to enclosing extension
extension JNetworkManager {
^
error: fatalError
Fetching https://github.com/Alamofire/Alamofire.git
[1/29795] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.94s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.1 (0.46s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.1
BUILD FAILURE 5.10 macosSpm