Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rive Animations do not show when built for production using XCode 14.2 #7

Open
paulmlilo opened this issue Aug 19, 2023 · 3 comments
Open
Assignees

Comments

@paulmlilo
Copy link

paulmlilo commented Aug 19, 2023

Hi

I have been using @nativescript/rive for iOS. When I build my app for development, the animations work fine, but when I build for production using XCode, the production build does not show the animations at all.

Platform: iOS
XCode: 14.2
@angular/core: ~16.2.0
@nativescript/angular: ~16.0.0
@nativescript/core: 8.5.9
@nativescript/rive: 1.0.1
@nativescript/ios: 8.5.2

SPMPackages: [
{
name: "RiveRuntime",
libs: ["RiveRuntime"],
repositoryURL: "https://github.com/rive-app/rive-ios.git",
version: "5.1.6"
}
]

@NathanWalker
Copy link
Contributor

That would be odd @paulmlilo could you share the view markup setup and potentially even the rive file in use?

@paulmlilo
Copy link
Author

paulmlilo commented Aug 21, 2023

<RiveView
artboard="info"
src="~/assets/rive/alert-icons.riv"
width="300"
height="300"
autoplay="true"
class="w-full h-full"
iosOverflowSafeArea="true"
(loaded)="this.riveViewLoaded($event)"

alert-icons.riv.zip

Production build command
ns prepare ios --release --env.uglify --env.aot

@AdamAtri
Copy link

AdamAtri commented Dec 15, 2023

The SPMPackages version is not being respected. I have 5.6.0 set and the 5.7.0 package is being retrieved.

nativescript.config.ts:

...
ios: {
    id: 'my.awesome.app',
    discardUncaughtJsExceptions: true,
    codeCache: true,
    SPMPackages: [
      {
        name: 'RiveRuntime',
        libs: ['RiveRuntime'],
        repositoryURL: 'https://github.com/rive-app/rive-ios.git',
        version: '5.6.0',
      },
    ],
  },
...
Resolving SPM dependencies...
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/**/platforms/ios/mobile.xcworkspace -scheme mobile -destination generic/platform=iOS -resolvePackageDependencies

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Resolve Package Graph

Updating from https://github.com/rive-app/rive-ios.git

Checking out 5.7.0 of package ‘rive-ios’


Resolved source packages:
  RiveRuntime: https://github.com/rive-app/rive-ios.git @ 5.7.0

resolved source packages: RiveRuntime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants