rive-app / rive-ios

iOS runtime for Rive
MIT License
468 stars 53 forks source link

RiveRuntime - Xcode says that "No such module" #234

Closed Sankar-MSS closed 1 year ago

Sankar-MSS commented 1 year ago

I have added. rive-ios package using File->Add Package. It is included in my project "Package Dependencies" as "RiveRuntime 3.0.4. When I was trying import in my Swift code it says that "No such module 'RiveRuntime' How can we resolve this issue?

Amaechi-Umunna commented 1 year ago

Same issue here on Xcode 13.4.1

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.

Rockfella commented 1 year ago

I have the same issue now, and removing cache, re-installing the pod does not make any difference.

Failed to build module 'RiveRuntime'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)', while this compiler is 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

Anyone who were able to fix this?

singhayush1403 commented 1 year ago

Facing the same error

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.

OTDGK commented 1 year ago

SO, WHAT I SUPPED TO DO IN THIS CUASE ? Please informed with all info so I can repaint asap !! Whatever, I appreciated your cooperation with me !!

Sincerely! On Sat, Nov 26, 2022 at 2:54 PM Ayush Singh @.***> wrote:

Facing the same error

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.

— Reply to this email directly, view it on GitHub https://github.com/rive-app/rive-ios/issues/234#issuecomment-1328032973, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2VEICCQE4N4ALCMMVGCUATWKH27NANCNFSM6AAAAAARGV4HUQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Rockfella commented 1 year ago

Hello, for me the issue resolved once i upgraded the mac OS to 13.1 Beta and Xcode to Version 14.1, no further digging

spetz83 commented 1 year ago

This is still an issue for me in Xcode 14.2 Fresh project. Add RiveRuntime to project using swift package manager. Xcode will code complete the import of RiveRuntime. After a few seconds IDE highlights RiveRuntime in red and claims the module doesn't exist.

mjtalbot commented 1 year ago

Hi @spetz83 can you confirm that this is still an issue on a fresh Xcode 14.2 project? I've just made a new project & added rive-ios via SPM and was able to render an animation.

@Sankar-MSS can you confirm that you are building to ios & have not selected mac for example as your build target? image (selecting mac as the build target does produce "No such module 'RiveRuntime'" we need to add macOS support for this to work)

forYouDevelop commented 1 year ago

I have the same issue Xcode version 14.2

mjtalbot commented 1 year ago

@forYouDevelop are you targeting an iphone or the mac when you reproduce this issue?

mjtalbot commented 1 year ago

Closing this issue for now, as we need a reliable repro. Of course if you are still experiencing this issue, free to re-open & with a repro we should be able to get to the bottom of it