matomo-org / matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
MIT License
388 stars 164 forks source link

Matomo binary releases are not forward compatible as they don't declare BUILD_LIBRARY_FOR_DISTRIBUTION #365

Open swifty-tim opened 3 years ago

swifty-tim commented 3 years ago

If you take an older binary framework release from github, and then use it on a version of Xcode that has a newer swift compiler (e.g. swift 5.1 vs swift 5.2) you get the compile error:

Module compiled with Swift 5.x cannot be imported by the Swift 5.y compiler

Expected outcome:

The code will compile

What actually happens:

Failure to compile with error: Module compiled with Swift 5.x cannot be imported by the Swift 5.x compiler