Library cannot compile for Swift 5 #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.