Based on the results of the latest build results at the Swift Package Index, the SPM package cannot compile for Swift v5.
Explanation
From what the logs are telling, the declaration of a specific error thrown at a function is not supported by the mentioned version of the Swift compiler. These definitions are being used on the functions defined at the AmiiboService service type and at the APIClient protocol as well, like this:
Both the AmiiboService service type and the APIClient protocol should have two functions definitions, one for Swift 5 and another for Swift 6. The same goes for the types that conforms to this particular protocol. It is assumed that a syntax like this will be used to solve this issue:
#ifswift(>=6.0)// …#else// …#endif
# Summary
Based on the results of the [latest build results](https://swiftpackageindex.com/rock-n-code/amiibo-service/builds) at the Swift Package Index, the SPM package cannot compile for Swift v5.
# Explanation
From what the logs are telling, the declaration of a specific error thrown at a function is not supported by the mentioned version of the Swift compiler. These definitions are being used on the functions defined at the `AmiiboService` service type and at the `APIClient` protocol as well, like this:
```swift
func someFunctions() async throws(AmiiboServiceError)
```
# Posible solution
Both the `AmiiboService` service type and the `APIClient` protocol should have two functions definitions, one for Swift 5 and another for Swift 6. The same goes for the types that conforms to this particular protocol. It is assumed that a syntax like this will be used to solve this issue:
```swift
#if swift(>=6.0)
// …
#else
// …
#endif
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Based on the results of the latest build results at the Swift Package Index, the SPM package cannot compile for Swift v5.
Explanation
From what the logs are telling, the declaration of a specific error thrown at a function is not supported by the mentioned version of the Swift compiler. These definitions are being used on the functions defined at the
AmiiboServiceservice type and at theAPIClientprotocol as well, like this:Posible solution
Both the
AmiiboServiceservice type and theAPIClientprotocol should have two functions definitions, one for Swift 5 and another for Swift 6. The same goes for the types that conforms to this particular protocol. It is assumed that a syntax like this will be used to solve this issue:Fixed in PR #11.