rive-ios icon indicating copy to clipboard operation
rive-ios copied to clipboard

XCode 14 Beta 5 Preview error

Open imougy opened this issue 2 years ago • 9 comments

Can't see preview anymore, here is the error in text form:- ` HumanReadableSwiftError

SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x0000600008165530):'RiveRuntime'>) ` Screen Shot 2022-08-19 at 1 45 31 PM

imougy avatar Aug 19 '22 20:08 imougy

Seeing this as well.

ccdwyer avatar Aug 22 '22 23:08 ccdwyer

I'm facing the same issue with Version 14.0 (14A309) Did anyone find a fix or a workaround for this?

CodersB avatar Sep 15 '22 00:09 CodersB

Same problem. Has anyone found a solution? Xcode 14.0 (14A309)

Auridel avatar Sep 16 '22 19:09 Auridel

Same on my end, even with views which are not using Rive at all CleanShot 2022-09-18 at 13 18 19@2x

satanworker avatar Sep 18 '22 06:09 satanworker

Did anyone find a fix to this?

Screen Shot 2022-09-23 at 11 32 06 AM

andrewbeshay25 avatar Sep 23 '22 15:09 andrewbeshay25

I found a solution!

Go to your project's main file with a blue App Store logo. Go to Targets > your app > General (at the top) > scroll down to Frameworks, libraries, and embedded content > remove RiveRuntime.

I don't know why that would work but it did work for me and now my rive animations are still there plus the previews work.

Screen Shot 2022-09-25 at 11 31 54 PM

andrewbeshay25 avatar Sep 26 '22 03:09 andrewbeshay25

The above is a great workaround!

imougy avatar Oct 03 '22 23:10 imougy

Same issue here. The founder just replied to my tweet and suggested that we install it as an .xcframework instead of via Swift Package Manager. Apparently there is an issue with all binary frameworks with Swift Package Manager right now. Anyone know how to do this?

creativejace avatar Oct 12 '22 06:10 creativejace

We did some testing around this - and believe it to be an XCode ^14.0.0 bug around SPM packages (able to repro with other non-Rive packages standalone in a new app). As @andrewbeshay25 found interestingly, if you remove it, you should be able to use RiveRuntime in previews, but it may not build if you run on a simulator. However if you keep RiveRuntime as a SPM package added (still our most recommended way to add the package), you should be able to run this on an emulator. We also did some testing and the new XCode beta (14.1) seems to have addressed this issue so you may try experimenting there to see if this resolves the issue!

zplata avatar Oct 14 '22 13:10 zplata

closing this out as this has been resolved with later versions of XCode

mjtalbot avatar Mar 22 '23 16:03 mjtalbot