Build Information
Successful build of EsimplifiedSDK, reference main (44e3e6), with Swift 6.1 for macOS (SPM) on 3 Oct 2026 04:10:39 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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 InferSendableFromCapturesBuild Log
11 | public var password_reset: Bool = false
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:120:33: warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
118 | if let code { body["code"] = code }
119 | if let orderUUID { body["order_uuid"] = orderUUID }
120 | return try await client.fetch(
| `- warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
121 | endpoint: .verifyEmail,
122 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VerifyEmailResponse.swift:12:15: note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
10 | // MARK: Verify Email Response
11 |
12 | public struct VerifyEmailResponse: Codable {
| `- note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
13 | public var email: String = ""
14 | public var email_verified: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:136:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
134 | "refresh_token": refreshToken
135 | ]
136 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
137 | endpoint: .auth,
138 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:153:64: warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
151 |
152 | func deleteAccount() async throws -> DeleteAccountResponse {
153 | let response: DeleteAccountResponse = try await client.fetch(
| `- warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
154 | endpoint: .deleteAccount,
155 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DeleteAccountResponse.swift:12:15: note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
10 | // MARK: Delete Account Response
11 |
12 | public struct DeleteAccountResponse: Codable {
| `- note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
13 | public var deleted: Bool = false
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:21:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchAllCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
20 | let cacheKey = "countries_all"
21 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return RepositoryResult(value: cached)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:26:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 | let parameters = ["limit": "1000"]
25 | do {
26 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .countries,
28 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:37:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:44:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
42 | func fetchPopularCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
43 | let cacheKey = "countries_popular"
44 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
45 | return RepositoryResult(value: cached)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:49:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | let parameters = ["region": "Popular", "limit": "1000"]
48 | do {
49 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .countries,
51 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:60:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
58 | } catch {
59 | let failure = error as? SdkError ?? .unknown(error)
60 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
61 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:72:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
70 | let parameters = ["search_term": searchTerm]
71 | do {
72 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
73 | endpoint: .search,
74 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:29:60: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Esim]> {
28 | let cacheKey = "esims_\(archivedEsims)_legacy\(showLegacy.map(String.init) ?? "any")_primary\(isPrimary.map(String.init) ?? "any")_qr\(includeBase64QrCode)"
29 | if !forceRefresh, let cached: [Esim] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:51:60: warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
49 | }
50 | do {
51 | let response: EsimsResponse = try await client.fetch(
| `- warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | endpoint: .esims,
53 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:12:15: note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
10 | // MARK: Esim Response
11 |
12 | public struct EsimsResponse: Codable {
| `- note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:61:47: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
59 | } catch {
60 | let failure = error as? SdkError ?? .unknown(error)
61 | let expired: [Esim] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
62 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:91:58: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
89 | ) async -> RepositoryResult<Esim?> {
90 | let cacheKey = "esim_details_\(iccid)_qr\(includeBase64QrCode)"
91 | if !forceRefresh, let cached: Esim = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
92 | return RepositoryResult(value: cached)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:95:47: warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
93 | }
94 | do {
95 | let esim: Esim = try await client.fetch(
| `- warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | endpoint: .esimDetails,
97 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:105:46: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
105 | let expired: Esim? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
106 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:121:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
119 | func updateEsimNameOrThrow(customName: String, iccid: String) async throws {
120 | await invalidateEsimCaches(iccid: iccid)
121 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
122 | endpoint: .updateEsim,
123 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:143:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
141 | func updateEsimAutoTopUpStatusOrThrow(status: Bool, iccid: String) async throws {
142 | await invalidateEsimCaches(iccid: iccid)
143 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
144 | endpoint: .updateEsim,
145 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:165:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
163 | func updateEsimArchivedStatusOrThrow(status: Bool, iccid: String) async throws {
164 | await invalidateEsimCaches(iccid: iccid)
165 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
166 | endpoint: .updateEsim,
167 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:187:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
185 | func updateEsimPrimaryStatusOrThrow(status: Bool, iccid: String) async throws {
186 | await invalidateEsimCaches(iccid: iccid)
187 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
188 | endpoint: .updateEsim,
189 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:29:59: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Faq]> {
28 | let cacheKey = "faqs_destination_\(countryNameSlug)"
29 | if !forceRefresh, let cached: [Faq] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:33:69: warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 | }
32 | do {
33 | let response: DestinationFaqResponse = try await client.fetch(
| `- warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .destinationFaqs,
35 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:11:15: note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
9 | // MARK: Destination FAQ Response
10 |
11 | public struct DestinationFaqResponse: Codable, Hashable {
| `- note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
12 |
13 | public let slug: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:43:46: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
41 | } catch {
42 | let failure = error as? SdkError ?? .unknown(error)
43 | let expired: [Faq] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
44 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:23:81: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
21 | func fetchKredsBalance(forceRefresh: Bool = true, cacheTTL: TimeInterval = 3600) async throws -> KredsLoyaltyBalanceResponse {
22 | let cacheKey = "kreds_balance"
23 | if !forceRefresh, let cached: KredsLoyaltyBalanceResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | return cached
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:27:74: warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | }
26 | do {
27 | let response: KredsLoyaltyBalanceResponse = try await client.fetch(
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .loyaltyPoints,
29 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:34:71: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
32 | return response
33 | } catch {
34 | if let expired: KredsLoyaltyBalanceResponse = await cache.getExpired(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | return expired
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:38:15: note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
36 | // MARK: Mokafaa OTP Initiate Response
37 |
38 | public struct MokafaaOtpInitiateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
39 | public let sessionId: String
40 | public let expiresAt: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:54:33: warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | func validateOtp(sessionId: String, otp: String, points: Int?, packageTypeId: Int?) async throws -> MokafaaOtpValidateResponse {
53 | let body = MokafaaOtpValidateRequest(sessionId: sessionId, otp: otp, points: points, packageTypeId: packageTypeId)
54 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
55 | endpoint: .validateMokafaaOtp,
56 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:81:15: note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
79 | // MARK: Mokafaa OTP Validate Response
80 |
81 | public struct MokafaaOtpValidateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
82 | public let status: MokafaaOtpStatus
83 | public let pointsRedeemed: Int?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:19:37: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchNotificationSettings() async -> [NotificationSettings] {
18 | do {
19 | return try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .notificationSettings,
21 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:78:26: warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
76 |
77 | func register(request: RegisterCustomerRequest) async throws -> RegisterCustomerResponse {
78 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'RegisterCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
79 | endpoint: .signUpUser,
80 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:33:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let countries = response.countries
33 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: countries)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:56:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
54 | )
55 | let countries = response.countries
56 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
57 | return RepositoryResult(value: countries)
58 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:57:25: warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
55 | )
56 | let esims = response.esims
57 | await cache.set(cacheKey, value: esims, ttl: cacheTTL)
| |- warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'esims' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
58 | return RepositoryResult(value: esims)
59 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:101:25: warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
99 | id: iccid
100 | )
101 | await cache.set(cacheKey, value: esim, ttl: cacheTTL)
| |- warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'esim' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
102 | return RepositoryResult(value: esim)
| `- note: access can happen concurrently
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:39:25: warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
37 | requiresAuth: false
38 | )
39 | await cache.set(cacheKey, value: response.faqs, ttl: cacheTTL)
| |- warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response.faqs' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
40 | return RepositoryResult(value: response.faqs)
41 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:31:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | method: .GET
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| |- warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'MokafaaOtpInitiateRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| |- warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '[NotificationSettings]' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
[48/95] Compiling EsimplifiedSDK MarketingRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:27:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | "grant_type": "password"
26 | ]
27 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .auth,
29 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:62:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
60 | "sender": "ios"
61 | ]
62 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
63 | endpoint: .auth,
64 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:78:26: warning: non-sendable result type 'RegisterCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
76 |
77 | func register(request: RegisterCustomerRequest) async throws -> RegisterCustomerResponse {
78 | try await client.fetch(
| `- warning: non-sendable result type 'RegisterCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
79 | endpoint: .signUpUser,
80 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/RegisterCustomerResponse.swift:12:15: note: consider making struct 'RegisterCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Register Customer Response
11 |
12 | public struct RegisterCustomerResponse: Codable {
| `- note: consider making struct 'RegisterCustomerResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 | public var success: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:87:26: warning: non-sendable result type 'ForgotPasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
85 |
86 | func forgotPassword(email: String) async throws -> ForgotPasswordResponse {
87 | try await client.fetch(
| `- warning: non-sendable result type 'ForgotPasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
88 | endpoint: .forgotPassword,
89 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ForgotPasswordResponse.swift:12:15: note: consider making struct 'ForgotPasswordResponse' conform to the 'Sendable' protocol
10 | // MARK: Forgot Password Response
11 |
12 | public struct ForgotPasswordResponse: Codable {
| `- note: consider making struct 'ForgotPasswordResponse' conform to the 'Sendable' protocol
13 | public var email: String = ""
14 | public var detail: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:97:33: warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
95 | func resetPassword(email: String, token: String, newPassword: String) async throws -> ChangePasswordResponse {
96 | let body = ["email": email, "password_reset_token": token, "new_password": newPassword]
97 | return try await client.fetch(
| `- warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
98 | endpoint: .changePassword,
99 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ChangePasswordResponse.swift:10:15: note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
8 | // MARK: Change Password Response
9 |
10 | public struct ChangePasswordResponse: Codable {
| `- note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
11 | public var password_reset: Bool = false
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:107:33: warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
105 | func changePassword(email: String, currentPassword: String, newPassword: String) async throws -> ChangePasswordResponse {
106 | let body = ["email": email, "password": currentPassword, "new_password": newPassword]
107 | return try await client.fetch(
| `- warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
108 | endpoint: .changePassword,
109 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ChangePasswordResponse.swift:10:15: note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
8 | // MARK: Change Password Response
9 |
10 | public struct ChangePasswordResponse: Codable {
| `- note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
11 | public var password_reset: Bool = false
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:120:33: warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
118 | if let code { body["code"] = code }
119 | if let orderUUID { body["order_uuid"] = orderUUID }
120 | return try await client.fetch(
| `- warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
121 | endpoint: .verifyEmail,
122 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VerifyEmailResponse.swift:12:15: note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
10 | // MARK: Verify Email Response
11 |
12 | public struct VerifyEmailResponse: Codable {
| `- note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
13 | public var email: String = ""
14 | public var email_verified: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:136:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
134 | "refresh_token": refreshToken
135 | ]
136 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
137 | endpoint: .auth,
138 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:153:64: warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
151 |
152 | func deleteAccount() async throws -> DeleteAccountResponse {
153 | let response: DeleteAccountResponse = try await client.fetch(
| `- warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
154 | endpoint: .deleteAccount,
155 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DeleteAccountResponse.swift:12:15: note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
10 | // MARK: Delete Account Response
11 |
12 | public struct DeleteAccountResponse: Codable {
| `- note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
13 | public var deleted: Bool = false
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:21:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchAllCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
20 | let cacheKey = "countries_all"
21 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return RepositoryResult(value: cached)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:26:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 | let parameters = ["limit": "1000"]
25 | do {
26 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .countries,
28 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:37:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:44:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
42 | func fetchPopularCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
43 | let cacheKey = "countries_popular"
44 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
45 | return RepositoryResult(value: cached)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:49:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | let parameters = ["region": "Popular", "limit": "1000"]
48 | do {
49 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .countries,
51 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:60:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
58 | } catch {
59 | let failure = error as? SdkError ?? .unknown(error)
60 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
61 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:72:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
70 | let parameters = ["search_term": searchTerm]
71 | do {
72 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
73 | endpoint: .search,
74 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:29:60: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Esim]> {
28 | let cacheKey = "esims_\(archivedEsims)_legacy\(showLegacy.map(String.init) ?? "any")_primary\(isPrimary.map(String.init) ?? "any")_qr\(includeBase64QrCode)"
29 | if !forceRefresh, let cached: [Esim] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:51:60: warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
49 | }
50 | do {
51 | let response: EsimsResponse = try await client.fetch(
| `- warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | endpoint: .esims,
53 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:12:15: note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
10 | // MARK: Esim Response
11 |
12 | public struct EsimsResponse: Codable {
| `- note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:61:47: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
59 | } catch {
60 | let failure = error as? SdkError ?? .unknown(error)
61 | let expired: [Esim] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
62 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:91:58: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
89 | ) async -> RepositoryResult<Esim?> {
90 | let cacheKey = "esim_details_\(iccid)_qr\(includeBase64QrCode)"
91 | if !forceRefresh, let cached: Esim = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
92 | return RepositoryResult(value: cached)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:95:47: warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
93 | }
94 | do {
95 | let esim: Esim = try await client.fetch(
| `- warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | endpoint: .esimDetails,
97 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:105:46: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
105 | let expired: Esim? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
106 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:121:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
119 | func updateEsimNameOrThrow(customName: String, iccid: String) async throws {
120 | await invalidateEsimCaches(iccid: iccid)
121 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
122 | endpoint: .updateEsim,
123 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:143:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
141 | func updateEsimAutoTopUpStatusOrThrow(status: Bool, iccid: String) async throws {
142 | await invalidateEsimCaches(iccid: iccid)
143 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
144 | endpoint: .updateEsim,
145 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:165:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
163 | func updateEsimArchivedStatusOrThrow(status: Bool, iccid: String) async throws {
164 | await invalidateEsimCaches(iccid: iccid)
165 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
166 | endpoint: .updateEsim,
167 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:187:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
185 | func updateEsimPrimaryStatusOrThrow(status: Bool, iccid: String) async throws {
186 | await invalidateEsimCaches(iccid: iccid)
187 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
188 | endpoint: .updateEsim,
189 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:29:59: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Faq]> {
28 | let cacheKey = "faqs_destination_\(countryNameSlug)"
29 | if !forceRefresh, let cached: [Faq] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:33:69: warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 | }
32 | do {
33 | let response: DestinationFaqResponse = try await client.fetch(
| `- warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .destinationFaqs,
35 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:11:15: note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
9 | // MARK: Destination FAQ Response
10 |
11 | public struct DestinationFaqResponse: Codable, Hashable {
| `- note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
12 |
13 | public let slug: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:43:46: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
41 | } catch {
42 | let failure = error as? SdkError ?? .unknown(error)
43 | let expired: [Faq] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
44 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:23:81: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
21 | func fetchKredsBalance(forceRefresh: Bool = true, cacheTTL: TimeInterval = 3600) async throws -> KredsLoyaltyBalanceResponse {
22 | let cacheKey = "kreds_balance"
23 | if !forceRefresh, let cached: KredsLoyaltyBalanceResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | return cached
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:27:74: warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | }
26 | do {
27 | let response: KredsLoyaltyBalanceResponse = try await client.fetch(
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .loyaltyPoints,
29 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:34:71: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
32 | return response
33 | } catch {
34 | if let expired: KredsLoyaltyBalanceResponse = await cache.getExpired(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | return expired
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:38:15: note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
36 | // MARK: Mokafaa OTP Initiate Response
37 |
38 | public struct MokafaaOtpInitiateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
39 | public let sessionId: String
40 | public let expiresAt: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:54:33: warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | func validateOtp(sessionId: String, otp: String, points: Int?, packageTypeId: Int?) async throws -> MokafaaOtpValidateResponse {
53 | let body = MokafaaOtpValidateRequest(sessionId: sessionId, otp: otp, points: points, packageTypeId: packageTypeId)
54 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
55 | endpoint: .validateMokafaaOtp,
56 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:81:15: note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
79 | // MARK: Mokafaa OTP Validate Response
80 |
81 | public struct MokafaaOtpValidateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
82 | public let status: MokafaaOtpStatus
83 | public let pointsRedeemed: Int?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:19:37: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchNotificationSettings() async -> [NotificationSettings] {
18 | do {
19 | return try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .notificationSettings,
21 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:78:26: warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
76 |
77 | func register(request: RegisterCustomerRequest) async throws -> RegisterCustomerResponse {
78 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'RegisterCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
79 | endpoint: .signUpUser,
80 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:33:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let countries = response.countries
33 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: countries)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:56:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
54 | )
55 | let countries = response.countries
56 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
57 | return RepositoryResult(value: countries)
58 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:57:25: warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
55 | )
56 | let esims = response.esims
57 | await cache.set(cacheKey, value: esims, ttl: cacheTTL)
| |- warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'esims' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
58 | return RepositoryResult(value: esims)
59 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:101:25: warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
99 | id: iccid
100 | )
101 | await cache.set(cacheKey, value: esim, ttl: cacheTTL)
| |- warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'esim' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
102 | return RepositoryResult(value: esim)
| `- note: access can happen concurrently
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:39:25: warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
37 | requiresAuth: false
38 | )
39 | await cache.set(cacheKey, value: response.faqs, ttl: cacheTTL)
| |- warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response.faqs' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
40 | return RepositoryResult(value: response.faqs)
41 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:31:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | method: .GET
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| |- warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'MokafaaOtpInitiateRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| |- warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '[NotificationSettings]' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
[49/95] Compiling EsimplifiedSDK NotificationRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:27:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | "grant_type": "password"
26 | ]
27 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .auth,
29 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:62:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
60 | "sender": "ios"
61 | ]
62 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
63 | endpoint: .auth,
64 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:78:26: warning: non-sendable result type 'RegisterCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
76 |
77 | func register(request: RegisterCustomerRequest) async throws -> RegisterCustomerResponse {
78 | try await client.fetch(
| `- warning: non-sendable result type 'RegisterCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
79 | endpoint: .signUpUser,
80 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/RegisterCustomerResponse.swift:12:15: note: consider making struct 'RegisterCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Register Customer Response
11 |
12 | public struct RegisterCustomerResponse: Codable {
| `- note: consider making struct 'RegisterCustomerResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 | public var success: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:87:26: warning: non-sendable result type 'ForgotPasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
85 |
86 | func forgotPassword(email: String) async throws -> ForgotPasswordResponse {
87 | try await client.fetch(
| `- warning: non-sendable result type 'ForgotPasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
88 | endpoint: .forgotPassword,
89 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ForgotPasswordResponse.swift:12:15: note: consider making struct 'ForgotPasswordResponse' conform to the 'Sendable' protocol
10 | // MARK: Forgot Password Response
11 |
12 | public struct ForgotPasswordResponse: Codable {
| `- note: consider making struct 'ForgotPasswordResponse' conform to the 'Sendable' protocol
13 | public var email: String = ""
14 | public var detail: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:97:33: warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
95 | func resetPassword(email: String, token: String, newPassword: String) async throws -> ChangePasswordResponse {
96 | let body = ["email": email, "password_reset_token": token, "new_password": newPassword]
97 | return try await client.fetch(
| `- warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
98 | endpoint: .changePassword,
99 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ChangePasswordResponse.swift:10:15: note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
8 | // MARK: Change Password Response
9 |
10 | public struct ChangePasswordResponse: Codable {
| `- note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
11 | public var password_reset: Bool = false
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:107:33: warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
105 | func changePassword(email: String, currentPassword: String, newPassword: String) async throws -> ChangePasswordResponse {
106 | let body = ["email": email, "password": currentPassword, "new_password": newPassword]
107 | return try await client.fetch(
| `- warning: non-sendable result type 'ChangePasswordResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
108 | endpoint: .changePassword,
109 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/ChangePasswordResponse.swift:10:15: note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
8 | // MARK: Change Password Response
9 |
10 | public struct ChangePasswordResponse: Codable {
| `- note: consider making struct 'ChangePasswordResponse' conform to the 'Sendable' protocol
11 | public var password_reset: Bool = false
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:120:33: warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
118 | if let code { body["code"] = code }
119 | if let orderUUID { body["order_uuid"] = orderUUID }
120 | return try await client.fetch(
| `- warning: non-sendable result type 'VerifyEmailResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
121 | endpoint: .verifyEmail,
122 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VerifyEmailResponse.swift:12:15: note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
10 | // MARK: Verify Email Response
11 |
12 | public struct VerifyEmailResponse: Codable {
| `- note: consider making struct 'VerifyEmailResponse' conform to the 'Sendable' protocol
13 | public var email: String = ""
14 | public var email_verified: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:136:65: warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
134 | "refresh_token": refreshToken
135 | ]
136 | let response: SignInCustomerResponse = try await client.fetch(
| `- warning: non-sendable result type 'SignInCustomerResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
137 | endpoint: .auth,
138 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/SignInCustomerResponse.swift:12:15: note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
10 | // MARK: Sign In Customer Response
11 |
12 | public struct SignInCustomerResponse: Codable {
| `- note: consider making struct 'SignInCustomerResponse' conform to the 'Sendable' protocol
13 | public var accessToken: String = ""
14 | public var tokenExpiresIn: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:153:64: warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
151 |
152 | func deleteAccount() async throws -> DeleteAccountResponse {
153 | let response: DeleteAccountResponse = try await client.fetch(
| `- warning: non-sendable result type 'DeleteAccountResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
154 | endpoint: .deleteAccount,
155 | method: .DELETE
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DeleteAccountResponse.swift:12:15: note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
10 | // MARK: Delete Account Response
11 |
12 | public struct DeleteAccountResponse: Codable {
| `- note: consider making struct 'DeleteAccountResponse' conform to the 'Sendable' protocol
13 | public var deleted: Bool = false
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:21:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
19 | func fetchAllCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
20 | let cacheKey = "countries_all"
21 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
22 | return RepositoryResult(value: cached)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:26:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
24 | let parameters = ["limit": "1000"]
25 | do {
26 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 | endpoint: .countries,
28 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:37:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | } catch {
36 | let failure = error as? SdkError ?? .unknown(error)
37 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
38 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:44:63: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
42 | func fetchPopularCountriesResult(forceRefresh: Bool = false, cacheTTL: TimeInterval = 86400) async -> RepositoryResult<[Country]> {
43 | let cacheKey = "countries_popular"
44 | if !forceRefresh, let cached: [Country] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
45 | return RepositoryResult(value: cached)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:49:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
47 | let parameters = ["region": "Popular", "limit": "1000"]
48 | do {
49 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
50 | endpoint: .countries,
51 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:60:50: warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
58 | } catch {
59 | let failure = error as? SdkError ?? .unknown(error)
60 | let expired: [Country] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Country]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
61 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:33:15: note: consider making struct 'Country' conform to the 'Sendable' protocol
31 | // MARK: Country Model
32 |
33 | public struct Country: Codable, Hashable, Identifiable {
| `- note: consider making struct 'Country' conform to the 'Sendable' protocol
34 | public let id = UUID()
35 | public let countryName: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:72:62: warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
70 | let parameters = ["search_term": searchTerm]
71 | do {
72 | let response: CountryResponse = try await client.fetch(
| `- warning: non-sendable result type 'CountryResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
73 | endpoint: .search,
74 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/CountryResponse.swift:12:15: note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
10 | // MARK: Country Response
11 |
12 | public struct CountryResponse: Codable {
| `- note: consider making struct 'CountryResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:29:60: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Esim]> {
28 | let cacheKey = "esims_\(archivedEsims)_legacy\(showLegacy.map(String.init) ?? "any")_primary\(isPrimary.map(String.init) ?? "any")_qr\(includeBase64QrCode)"
29 | if !forceRefresh, let cached: [Esim] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:51:60: warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
49 | }
50 | do {
51 | let response: EsimsResponse = try await client.fetch(
| `- warning: non-sendable result type 'EsimsResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | endpoint: .esims,
53 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:12:15: note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
10 | // MARK: Esim Response
11 |
12 | public struct EsimsResponse: Codable {
| `- note: consider making struct 'EsimsResponse' conform to the 'Sendable' protocol
13 | public let count: Int
14 | public let next: String?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:61:47: warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
59 | } catch {
60 | let failure = error as? SdkError ?? .unknown(error)
61 | let expired: [Esim] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Esim]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
62 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:91:58: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
89 | ) async -> RepositoryResult<Esim?> {
90 | let cacheKey = "esim_details_\(iccid)_qr\(includeBase64QrCode)"
91 | if !forceRefresh, let cached: Esim = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
92 | return RepositoryResult(value: cached)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:95:47: warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
93 | }
94 | do {
95 | let esim: Esim = try await client.fetch(
| `- warning: non-sendable result type 'Esim' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
96 | endpoint: .esimDetails,
97 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:105:46: warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
105 | let expired: Esim? = await cache.getExpired(cacheKey)
| `- warning: non-sendable result type 'Esim?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
106 | return RepositoryResult(value: expired, isStale: expired != nil, failure: failure)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/EsimsResponse.swift:33:15: note: consider making struct 'Esim' conform to the 'Sendable' protocol
31 | // MARK: Esim Model
32 |
33 | public struct Esim: Codable, Identifiable, Hashable {
| `- note: consider making struct 'Esim' conform to the 'Sendable' protocol
34 | public var id: String { iccid }
35 | public let iccid: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:121:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
119 | func updateEsimNameOrThrow(customName: String, iccid: String) async throws {
120 | await invalidateEsimCaches(iccid: iccid)
121 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
122 | endpoint: .updateEsim,
123 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:143:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
141 | func updateEsimAutoTopUpStatusOrThrow(status: Bool, iccid: String) async throws {
142 | await invalidateEsimCaches(iccid: iccid)
143 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
144 | endpoint: .updateEsim,
145 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:165:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
163 | func updateEsimArchivedStatusOrThrow(status: Bool, iccid: String) async throws {
164 | await invalidateEsimCaches(iccid: iccid)
165 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
166 | endpoint: .updateEsim,
167 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:187:61: warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
185 | func updateEsimPrimaryStatusOrThrow(status: Bool, iccid: String) async throws {
186 | await invalidateEsimCaches(iccid: iccid)
187 | let response: UpdateEsimResponse = try await client.fetch(
| `- warning: non-sendable result type 'UpdateEsimResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
188 | endpoint: .updateEsim,
189 | method: .PUT,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/UpdateEsimResponse.swift:12:15: note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
10 | // MARK: Update Esim Response
11 |
12 | public struct UpdateEsimResponse: Codable {
| `- note: consider making struct 'UpdateEsimResponse' conform to the 'Sendable' protocol
13 | public var message: String?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:29:59: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
27 | ) async -> RepositoryResult<[Faq]> {
28 | let cacheKey = "faqs_destination_\(countryNameSlug)"
29 | if !forceRefresh, let cached: [Faq] = await cache.get(cacheKey) {
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
30 | return RepositoryResult(value: cached)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:33:69: warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
31 | }
32 | do {
33 | let response: DestinationFaqResponse = try await client.fetch(
| `- warning: non-sendable result type 'DestinationFaqResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
34 | endpoint: .destinationFaqs,
35 | method: .GET,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:11:15: note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
9 | // MARK: Destination FAQ Response
10 |
11 | public struct DestinationFaqResponse: Codable, Hashable {
| `- note: consider making struct 'DestinationFaqResponse' conform to the 'Sendable' protocol
12 |
13 | public let slug: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:43:46: warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
41 | } catch {
42 | let failure = error as? SdkError ?? .unknown(error)
43 | let expired: [Faq] = await cache.getExpired(cacheKey) ?? []
| `- warning: non-sendable result type '[Faq]?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
44 | return RepositoryResult(value: expired, isStale: !expired.isEmpty, failure: failure)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/DestinationFaqResponse.swift:28:15: note: consider making struct 'Faq' conform to the 'Sendable' protocol
26 | // MARK: FAQ
27 |
28 | public struct Faq: Codable, Hashable {
| `- note: consider making struct 'Faq' conform to the 'Sendable' protocol
29 |
30 | public let question: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:23:81: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
21 | func fetchKredsBalance(forceRefresh: Bool = true, cacheTTL: TimeInterval = 3600) async throws -> KredsLoyaltyBalanceResponse {
22 | let cacheKey = "kreds_balance"
23 | if !forceRefresh, let cached: KredsLoyaltyBalanceResponse = await cache.get(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'get'; this is an error in the Swift 6 language mode
24 | return cached
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:27:74: warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
25 | }
26 | do {
27 | let response: KredsLoyaltyBalanceResponse = try await client.fetch(
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
28 | endpoint: .loyaltyPoints,
29 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:34:71: warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
32 | return response
33 | } catch {
34 | if let expired: KredsLoyaltyBalanceResponse = await cache.getExpired(cacheKey) {
| `- warning: non-sendable result type 'KredsLoyaltyBalanceResponse?' cannot be sent from actor-isolated context in call to instance method 'getExpired'; this is an error in the Swift 6 language mode
35 | return expired
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/KredsResponse.swift:12:15: note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
10 | // MARK: Kreds Loyalty Balance Response
11 |
12 | public struct KredsLoyaltyBalanceResponse: Codable {
| `- note: consider making struct 'KredsLoyaltyBalanceResponse' conform to the 'Sendable' protocol
13 | public let totalLoyaltyPoints: Int
14 | public let totalLoyaltyPointsDetail: LoyaltyPointsDetail
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpInitiateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:38:15: note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
36 | // MARK: Mokafaa OTP Initiate Response
37 |
38 | public struct MokafaaOtpInitiateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpInitiateResponse' conform to the 'Sendable' protocol
39 | public let sessionId: String
40 | public let expiresAt: String
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:54:33: warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
52 | func validateOtp(sessionId: String, otp: String, points: Int?, packageTypeId: Int?) async throws -> MokafaaOtpValidateResponse {
53 | let body = MokafaaOtpValidateRequest(sessionId: sessionId, otp: otp, points: points, packageTypeId: packageTypeId)
54 | return try await client.fetch(
| `- warning: non-sendable result type 'MokafaaOtpValidateResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
55 | endpoint: .validateMokafaaOtp,
56 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/MokafaaResponse.swift:81:15: note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
79 | // MARK: Mokafaa OTP Validate Response
80 |
81 | public struct MokafaaOtpValidateResponse: Codable {
| `- note: consider making struct 'MokafaaOtpValidateResponse' conform to the 'Sendable' protocol
82 | public let status: MokafaaOtpStatus
83 | public let pointsRedeemed: Int?
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:19:37: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func fetchNotificationSettings() async -> [NotificationSettings] {
18 | do {
19 | return try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .notificationSettings,
21 | method: .GET
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| `- warning: non-sendable result type '[NotificationSettings]' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/NotificationSettingsResponse.swift:12:15: note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
10 | // MARK: Notification Settings
11 |
12 | public struct NotificationSettings: Codable {
| `- note: consider making struct 'NotificationSettings' conform to the 'Sendable' protocol
13 | public let type: String
14 | public let enabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/AuthRepositoryImpl.swift:78:26: warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
76 |
77 | func register(request: RegisterCustomerRequest) async throws -> RegisterCustomerResponse {
78 | try await client.fetch(
| |- warning: sending value of non-Sendable type 'RegisterCustomerRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'RegisterCustomerRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
79 | endpoint: .signUpUser,
80 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:33:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
31 | )
32 | let countries = response.countries
33 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
34 | return RepositoryResult(value: countries)
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/CountriesRepositoryImpl.swift:56:25: warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
54 | )
55 | let countries = response.countries
56 | await cache.set(cacheKey, value: countries, ttl: cacheTTL)
| |- warning: sending 'countries' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'countries' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
57 | return RepositoryResult(value: countries)
58 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:57:25: warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
55 | )
56 | let esims = response.esims
57 | await cache.set(cacheKey, value: esims, ttl: cacheTTL)
| |- warning: sending 'esims' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'esims' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
58 | return RepositoryResult(value: esims)
59 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/EsimsRepositoryImpl.swift:101:25: warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
99 | id: iccid
100 | )
101 | await cache.set(cacheKey, value: esim, ttl: cacheTTL)
| |- warning: sending 'esim' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'esim' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and local nonisolated uses
102 | return RepositoryResult(value: esim)
| `- note: access can happen concurrently
103 | } catch {
104 | let failure = error as? SdkError ?? .unknown(error)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/FaqAndSupportRepositoryImpl.swift:39:25: warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
37 | requiresAuth: false
38 | )
39 | await cache.set(cacheKey, value: response.faqs, ttl: cacheTTL)
| |- warning: sending 'response.faqs' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response.faqs' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
40 | return RepositoryResult(value: response.faqs)
41 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:31:25: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
29 | method: .GET
30 | )
31 | await cache.set(cacheKey, value: response, ttl: cacheTTL)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self.client'-isolated 'response' to actor-isolated instance method 'set(_:value:ttl:)' risks causing data races between actor-isolated and 'self.client'-isolated uses
32 | return response
33 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/LoyaltyRepositoryImpl.swift:45:33: warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
43 | func initiateOtp(purpose: MokafaaOtpPurpose) async throws -> MokafaaOtpInitiateResponse {
44 | let body = MokafaaOtpInitiateRequest(purpose: purpose)
45 | return try await client.fetch(
| |- warning: sending value of non-Sendable type 'MokafaaOtpInitiateRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'MokafaaOtpInitiateRequest' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
46 | endpoint: .initiateMokafaaOtp,
47 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/NotificationRepositoryImpl.swift:29:58: warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
27 |
28 | func updateNotificationSettings(settings: [NotificationSettings]) async throws {
29 | let _: [NotificationSettings] = try await client.fetch(
| |- warning: sending value of non-Sendable type '[NotificationSettings]' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '[NotificationSettings]' to actor-isolated instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)' risks causing races in between task-isolated and actor-isolated uses
30 | endpoint: .notificationSettings,
31 | method: .PATCH,
[50/95] Compiling EsimplifiedSDK AuthState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[51/95] Compiling EsimplifiedSDK DefaultSessionProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[52/95] Compiling EsimplifiedSDK DefaultStorageProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[53/95] Compiling EsimplifiedSDK SessionProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[54/95] Compiling EsimplifiedSDK StorageProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[55/95] Compiling EsimplifiedSDK EsimplifiedSDK.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[56/95] Compiling EsimplifiedSDK ApiErrorResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[57/95] Compiling EsimplifiedSDK ChangePasswordResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[58/95] Compiling EsimplifiedSDK CheckStockResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[59/95] Compiling EsimplifiedSDK ContentDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'resolvedConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'resolvedConfig' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/EsimplifiedSDK.swift:56:22: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
54 | let storage = storageProvider ?? DefaultStorageProvider()
55 | let session = sessionProvider ?? DefaultSessionProvider(storage: storage)
56 | let client = HTTPClient(config: resolvedConfig, sessionProvider: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
57 |
58 | return EsimplifiedSdk(config: resolvedConfig, client: client, sessionProvider: session)
[60/95] Compiling EsimplifiedSDK NotificationSettingsResponse.swift
[61/95] Compiling EsimplifiedSDK OrderDetail.swift
[62/95] Compiling EsimplifiedSDK OrderResponse.swift
[63/95] Compiling EsimplifiedSDK PackageResponse.swift
[64/95] Compiling EsimplifiedSDK PaymentResponse.swift
[65/95] Compiling EsimplifiedSDK PhoneVerificationResponse.swift
[66/95] Compiling EsimplifiedSDK Promo.swift
[67/95] Compiling EsimplifiedSDK PromocodeResponse.swift
[68/95] Compiling EsimplifiedSDK RedeemVisaResponse.swift
[69/95] Compiling EsimplifiedSDK TransactionType.swift
[70/95] Compiling EsimplifiedSDK UpdateCustomerPreferenceResponse.swift
[71/95] Compiling EsimplifiedSDK UpdateCustomerResponse.swift
[72/95] Compiling EsimplifiedSDK UpdateEsimResponse.swift
[73/95] Compiling EsimplifiedSDK UserLocationResponse.swift
[74/95] Compiling EsimplifiedSDK UserResponse.swift
[75/95] Compiling EsimplifiedSDK VerifyEmailResponse.swift
[76/95] Compiling EsimplifiedSDK VisaRewardResponse.swift
[77/95] Compiling EsimplifiedSDK VisaValidateResponse.swift
[78/95] Compiling EsimplifiedSDK VoucherRedeemResponse.swift
[79/95] Compiling EsimplifiedSDK ApiErrorMessage.swift
[80/95] Compiling EsimplifiedSDK Endpoints.swift
[81/95] Compiling EsimplifiedSDK HTTPClient.swift
[82/95] Compiling EsimplifiedSDK HTTPMethod.swift
[83/95] Compiling EsimplifiedSDK NetworkLogger.swift
[84/95] Compiling EsimplifiedSDK SdkCache.swift
[85/95] Compiling EsimplifiedSDK AuthRepositoryType.swift
[86/95] Compiling EsimplifiedSDK CountriesRepositoryType.swift
[87/95] Compiling EsimplifiedSDK VouchersRepositoryImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[88/95] Compiling EsimplifiedSDK LoyaltyRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[89/95] Compiling EsimplifiedSDK MarketingRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[90/95] Compiling EsimplifiedSDK NotificationRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[91/95] Compiling EsimplifiedSDK OrdersRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[92/95] Compiling EsimplifiedSDK PackagesRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[93/95] Compiling EsimplifiedSDK PaymentsRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[94/95] Compiling EsimplifiedSDK PhoneVerificationRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
[95/95] Compiling EsimplifiedSDK PromoCodeRepositoryType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Repository/Implementation/VouchersRepositoryImpl.swift:19:33: warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
17 | func redeemVoucher(code: String) async throws -> VoucherRedeemResponse {
18 | let request = VoucherRedeemRequest(voucherCode: code)
19 | return try await client.fetch(
| `- warning: non-sendable result type 'VoucherRedeemResponse' cannot be sent from actor-isolated context in call to instance method 'fetch(endpoint:method:parameters:body:id:requiresAuth:isRetry:)'; this is an error in the Swift 6 language mode
20 | endpoint: .redeemVoucher,
21 | method: .POST,
/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/Model/VoucherRedeemResponse.swift:26:15: note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
24 | // MARK: Voucher Redeem Response
25 |
26 | public struct VoucherRedeemResponse: Codable {
| `- note: consider making struct 'VoucherRedeemResponse' conform to the 'Sendable' protocol
27 | public let redeemed: Bool
28 | public let redirectUrl: String?
Build complete! (6.58s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "EsimplifiedSDK",
"name" : "EsimplifiedSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "EsimplifiedSDK",
"targets" : [
"EsimplifiedSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EsimplifiedSDKTests",
"module_type" : "SwiftTarget",
"name" : "EsimplifiedSDKTests",
"path" : "Tests/EsimplifiedSDKTests",
"sources" : [
"ApiReferenceTests.swift",
"Auth/AuthFlowTests.swift",
"Auth/DefaultSessionProviderTests.swift",
"EsimplifiedSDKTests.swift",
"EsimplifiedSdkInitTests.swift",
"Helpers/MockStorageProvider.swift",
"Helpers/MockURLProtocol.swift",
"Model/ContentDocumentDecodingTests.swift",
"Model/CustomerDecodingTests.swift",
"Model/ModelDecodingTests.swift",
"Model/ModelDecodingTestsExtended.swift",
"Model/OrderDetailDecodingTests.swift",
"Model/RegisterCustomerRequestTests.swift",
"Network/ApiErrorMessageTests.swift",
"Network/HTTPClientTests.swift",
"Network/OfflineErrorMappingTests.swift",
"Network/SdkCacheTests.swift",
"Network/TokenRefreshSerializationTests.swift",
"PromoDecodingTests.swift",
"Repository/ContentRepositoryTests.swift",
"Repository/EsimQrCodeTests.swift",
"Repository/EsimsQueryTests.swift",
"Repository/OrdersPagingTests.swift",
"Repository/PhoneVerificationRepositoryTests.swift",
"Repository/RepositoryResultTests.swift",
"Repository/RepositoryTests.swift",
"SdkConfigTests.swift"
],
"target_dependencies" : [
"EsimplifiedSDK"
],
"type" : "test"
},
{
"c99name" : "EsimplifiedSDK",
"module_type" : "SwiftTarget",
"name" : "EsimplifiedSDK",
"path" : "Sources/EsimplifiedSDK",
"product_memberships" : [
"EsimplifiedSDK"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/EsimplifiedSDK/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Auth/AuthState.swift",
"Auth/DefaultSessionProvider.swift",
"Auth/DefaultStorageProvider.swift",
"Auth/SessionProvider.swift",
"Auth/StorageProvider.swift",
"EsimplifiedSDK.swift",
"Model/ApiErrorResponse.swift",
"Model/ChangePasswordResponse.swift",
"Model/CheckStockResponse.swift",
"Model/ContentDocument.swift",
"Model/CountryResponse.swift",
"Model/CustomerEmail.swift",
"Model/DefaultFalse.swift",
"Model/DeleteAccountResponse.swift",
"Model/DestinationFaqResponse.swift",
"Model/EsimsResponse.swift",
"Model/ForgotPasswordResponse.swift",
"Model/KredsResponse.swift",
"Model/MokafaaResponse.swift",
"Model/NotificationSettingsResponse.swift",
"Model/OrderDetail.swift",
"Model/OrderResponse.swift",
"Model/PackageResponse.swift",
"Model/PaymentResponse.swift",
"Model/PhoneVerificationResponse.swift",
"Model/Promo.swift",
"Model/PromocodeResponse.swift",
"Model/RedeemVisaResponse.swift",
"Model/RegisterCustomerRequest.swift",
"Model/RegisterCustomerResponse.swift",
"Model/RegisterUserRequest.swift",
"Model/RestrictedCountryModels.swift",
"Model/SignInCustomerResponse.swift",
"Model/StoreReviewResponse.swift",
"Model/StringExtensions.swift",
"Model/ThemeResponse.swift",
"Model/TrackedOrderResponse.swift",
"Model/TransactionType.swift",
"Model/UpdateCustomerPreferenceResponse.swift",
"Model/UpdateCustomerResponse.swift",
"Model/UpdateEsimResponse.swift",
"Model/UserLocationResponse.swift",
"Model/UserResponse.swift",
"Model/VerifyEmailResponse.swift",
"Model/VisaRewardResponse.swift",
"Model/VisaValidateResponse.swift",
"Model/VoucherRedeemResponse.swift",
"Network/ApiErrorMessage.swift",
"Network/Endpoints.swift",
"Network/HTTPClient.swift",
"Network/HTTPMethod.swift",
"Network/NetworkLogger.swift",
"Network/SdkCache.swift",
"Repository/AuthRepositoryType.swift",
"Repository/CountriesRepositoryType.swift",
"Repository/EsimsRepositoryType.swift",
"Repository/FaqAndSupportRepositoryType.swift",
"Repository/Implementation/AuthRepositoryImpl.swift",
"Repository/Implementation/CountriesRepositoryImpl.swift",
"Repository/Implementation/EsimsRepositoryImpl.swift",
"Repository/Implementation/FaqAndSupportRepositoryImpl.swift",
"Repository/Implementation/LoyaltyRepositoryImpl.swift",
"Repository/Implementation/MarketingRepositoryImpl.swift",
"Repository/Implementation/NotificationRepositoryImpl.swift",
"Repository/Implementation/OrdersRepositoryImpl.swift",
"Repository/Implementation/PackagesRepositoryImpl.swift",
"Repository/Implementation/PaymentsRepositoryImpl.swift",
"Repository/Implementation/PhoneVerificationRepositoryImpl.swift",
"Repository/Implementation/PromoCodeRepositoryImpl.swift",
"Repository/Implementation/StoreReviewRepositoryImpl.swift",
"Repository/Implementation/ThemeRepositoryImpl.swift",
"Repository/Implementation/UserRepositoryImpl.swift",
"Repository/Implementation/VisaRewardsRepositoryImpl.swift",
"Repository/Implementation/VouchersRepositoryImpl.swift",
"Repository/LoyaltyRepositoryType.swift",
"Repository/MarketingRepositoryType.swift",
"Repository/NotificationRepositoryType.swift",
"Repository/OrdersRepositoryType.swift",
"Repository/PackagesRepositoryType.swift",
"Repository/PaymentsRepositoryType.swift",
"Repository/PhoneVerificationRepositoryType.swift",
"Repository/PromoCodeRepositoryType.swift",
"Repository/RepositoryResult.swift",
"Repository/StoreReviewRepositoryType.swift",
"Repository/ThemeRepositoryType.swift",
"Repository/UserRepositoryType.swift",
"Repository/VisaRewardsRepositoryType.swift",
"Repository/VouchersRepositoryType.swift",
"SdkConfig.swift",
"SdkError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.