dyld:未找到符号:_ffi_prep_closure_loc(在Mac上) [英] dyld: Symbol not found: _ffi_prep_closure_loc (on Mac)
本文介绍了dyld:未找到符号:_ffi_prep_closure_loc(在Mac上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Mac上进行了常规的 flutter运行
,今天针对我的iPhone模拟器,并遇到了这些错误.
I did a regular flutter run
on my Mac, targeting my iPhone simulator today and got these errors.
Error output from CocoaPods:
↳
dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/toure/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib
dyld: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/toure/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib
您如何解决 dyld:找不到符号:_ffi_prep_closure_loc
错误?
推荐答案
我在 github问题.
在Mac上运行此命令即可解决问题.
Running this on my Mac solved the problem.
gem uninstall ffi
brew reinstall libffi
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
gem install ffi
我决定分享此内容,因为问题标题中的错误与我所得到的错误不同.希望这可以节省一些时间.
I decided to share this since the error in the title of the issue is different from the one that I got. Hope this can save someone some time.
这篇关于dyld:未找到符号:_ffi_prep_closure_loc(在Mac上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文