美文网首页
Flutter FFI: Failed to load dyna

Flutter FFI: Failed to load dyna

作者: LongFei_Brook | 来源:发表于2022-07-24 14:10 被阅读0次

    当在ios上使用DynamicLibrary.open("xxx.framework/xxx")打开动态库报错时,需要把这个库的文件添加到项目中

    具体步骤如下:

    1. 在xcode中打开项目工作区 example/ios/Runner.xcworkspace

    2. 右键点击 “Runner”

    3. 选择 Add files to "Runner"

    4. 选择 xxx.framework 文件添加

    5. 重新 flutter run

    相关文章

      网友评论

          本文标题:Flutter FFI: Failed to load dyna

          本文链接:https://www.haomeiwen.com/subject/ounobrtx.html