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

代码跑不起来,引入的库frusty_logger,提示不存在? #1

Closed
Aaron009 opened this issue Feb 4, 2021 · 3 comments
Closed

Comments

@Aaron009
Copy link

Aaron009 commented Feb 4, 2021

frusty_logger:
  git:
    url: https://github.com/sunshine-protocol/frusty-logger.git

对不起,这个问题,能删掉吗?好像是网络问题,我关掉重新打开又可以了。

@IWANABETHATGUY
Copy link

你自己close 以下就好了, 评论旁边

@Aaron009 Aaron009 closed this as completed Feb 4, 2021
@Aaron009
Copy link
Author

Aaron009 commented Feb 4, 2021

你自己close 以下就好了, 评论旁边

我以为是作者,我还遇到其他问题了呢,给他邮件了,等待他回信。

你会Rust Flutter FFI吗?
我遇到一个问题,帮我看看呗?
dart-archive/ffi#75

@yiv
Copy link
Owner

yiv commented Feb 4, 2021

By default, XCode will skip bundling the libexample.a library if it detects that it is not being used. To force its inclusion, add dummy invocations in SwiftMylibPlugin.swift that use every single native function that you use from Flutter:

需要把每个每个 ffi 提供的函数在 SwiftMylibPlugin.swift 显性地调用,只调用一个,IOS 在 debug 下能正常工作,但是到了 IOS releas 模式,*.a 静态库里的所有未被调用的符号都会被丢弃,所以在跑起来的时候出现找不到 symbol

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

No branches or pull requests

3 participants