Tou*_*der 3 dyld cocoapods flutter
我flutter run在我的 Mac 上做了一个常规,今天针对我的 iPhone 模拟器并得到了这些错误。
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
Run Code Online (Sandbox Code Playgroud)
你如何解决dyld: Symbol not found: _ffi_prep_closure_loc错误?
我发现了一个隐藏在github 问题中的修复程序。
在我的 Mac 上运行它解决了这个问题。
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
Run Code Online (Sandbox Code Playgroud)
我决定分享这个,因为问题标题中的错误与我得到的不同。希望这可以节省一些时间。
| 归档时间: |
|
| 查看次数: |
2737 次 |
| 最近记录: |