rive-app / rive-ios

iOS runtime for Rive
MIT License
496 stars 58 forks source link

Cannot use RiveRuntime installed with Cocoapods in Swift 5.6.1 #248

Closed denandreychuk closed 1 year ago

denandreychuk commented 1 year ago

Failed to build module 'RiveRuntime'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)', while this compiler is 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)'). Please select a toolchain which matches the SDK.

Cherylxue commented 1 year ago

I'm also having this issue.

mjtalbot commented 1 year ago

This could be a bug with how we are building RiveRuntime, which means its not backwards compatible with older frameworks. You should be able to resolve this by updating Xcode, which should be using a later toolchain. I'm trying to reproduce the issue by side loading and older version of Xcode now

mjtalbot commented 1 year ago

@denandreychuk & @Cherylxue can you confirm which version of Xcode you are using when you are seeing this? I've not been able to reproduce the issue you are describing

Cherylxue commented 1 year ago

@denandreychuk & @Cherylxue can you confirm which version of Xcode you are using when you are seeing this? I've not been able to reproduce the issue you are describing

I solved this by updating my MacOS and Xcode to the newest version. Thank you.

mjtalbot commented 1 year ago

I'm going to close the ticket, but if you experience issues of course reopen and raise those.

The fix is to update Xcode. From next week, Xcode 14.1 is going to be required for pushing apps to the app store, which comes with swift 5.7+

Please note, starting April 2023, all iOS and iPadOS apps submitted to the App Store must be built with Xcode 14.1 and the iOS 16.1 SDK.