Open dhsilber opened 1 month ago
Hi @dhsilber, you don't have a crash, you have a compilation error.
You can see the reason in the log itself:
[ ] Error output from CocoaPods:
↳
[ +35 ms]
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_req
uire.rb:54:in `require': cannot load such file -- ffi_c (LoadError)
from
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_re
quire.rb:54:in `require'
from /Library/Ruby/Gems/2.6.0/gems/ffi-1.17.0-arm64-darwin/lib/ffi.rb:5:in `rescue in <top
(required)>'
from /Library/Ruby/Gems/2.6.0/gems/ffi-1.17.0-arm64-darwin/lib/ffi.rb:2:in `<top
(required)>'
from
A quick Google suggests this solution: https://stackoverflow.com/a/29095194
Yes This is CocoaPods issue
Platform
macOS (Intel) Sonoma 14.5
Plugin
network_info_plus
Version
5.0.3
Flutter SDK
3.22.3
Steps to reproduce
flutter create demo cd demo flutter pub add network_info_plus flutter run -d macos <--- BOOM
(The above demonstrates the error. Following variations attempt to update dependancies, but actually make no difference that I can see.)
-- or --
flutter create demo cd demo flutter pub outdated flutter pub upgrade --major-versions flutter pub outdated <--- At this point, all dependencies are up-to-date flutter pub add network_info_plus flutter run -d macos <--- BOOM
-- or --
flutter create demo cd demo flutter pub outdated flutter pub upgrade --major-versions flutter pub outdated <--- At this point, all dependencies are up-to-date flutter pub add network_info_plus flutter pub outdated <--- At this point, all dependencies are up-to-date flutter run -d macos <--- BOOM
Code Sample
Logs