rive-app/rive-ios

RiveRuntime - Xcode says that "No such module"

Closed this issue · 10 comments

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?

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.

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?

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

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

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.

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)

I have the same issue
Xcode version 14.2

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

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