Giter Club home page Giter Club logo

Comments (5)

badlogic avatar badlogic commented on May 24, 2024

I'm afraid I have no experience with add2app. Do you happen to know if it has special requirements regarding loading dynamic libraries?

from spine-runtimes.

hyiso avatar hyiso commented on May 24, 2024

I'm not sure whether this plugin needs any configurations else, as I cannot find spine_flutter.framework in the Frameworks directory under the output HostProject.app

from spine-runtimes.

hyiso avatar hyiso commented on May 24, 2024

I've tested a simple add2app example, only a little different from my iOS host project, this plugin runs as expected.

The main difference is in Podfile

# Simple add2app example
use_frameworks!
# My iOS host project
use_frameworks! :linkage => :static

It seems not compatible with :linkage => :static

Then I changed the Podfile of the simple add2app example with :linkage => :static, it throws the exception.

So the real problem is that this plugin cannot be used with :linkage => :static

In my iOS host project, some other static libraries are required, so :linkage => :static cannot be removed.

Could this plugin support using static library?

from spine-runtimes.

hyiso avatar hyiso commented on May 24, 2024

Also tried the example in spine-flutter, adding :linkage => :static, after use_frameworks!, it also throws the exception

from spine-runtimes.

badlogic avatar badlogic commented on May 24, 2024

Sorry for this taking so long. I believe I have fixed this. You will have to adjust the way spine-flutter is initialized. E.g.

  await initSpineFlutter(useStaticLinkage: true);

This will instruct Dart FFI to lookup symbols in the process/executable instead of trying to locate them in a framework.

I've published a new spine_flutter package to pub.dev, version 4.2.24.

from spine-runtimes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.