Open jonahzheng opened 4 years ago
Make sure to use flutterd ev channel
, you can try to run flutter clean
and then run again, and if it is running in China, you need to check whether CocoaPods can be updated normally
Which server you are using . Pionion.org is not working?
Your environment.
os: macos mojave 10.14.5
What did you do?
lvzx% flutter run -d macos
What did you expect?
It works on a MAC
What happened?
lvzx% flutter run -d macos Flutter assets will be downloaded from http://mirrors.cnnic.cn/flutter. Make sure you trust this source! Downloading darwin-x64/FlutterMacOS.framework tools... 12.8s Downloading darwin-x64-profile/FlutterMacOS.framework tools... 3.9s Downloading darwin-x64-profile tools... 5.4s Downloading darwin-x64-release/FlutterMacOS.framework tools... 4.1s Downloading darwin-x64-release tools... 4.1s Launching lib/main.dart on macOS in debug mode... Running pod install... 29.1s CocoaPods' output: ↳ Preparing
Error output from CocoaPods: ↳ /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in'
require': dlopen(/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle Reason: image not found - /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in
require' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/openssl.rb:17:in<top (required)>' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:890:in
connect' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:862:indo_start' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:851:in
start' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:1367:inrequest' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:84:in
get_api_results' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:28:insearch' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:68:in
search_query' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:62:insearch_exception' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/user_interface/error_report.rb:119:in
search_for_exceptions' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:67:inreport_error' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:396:in
handle_exception' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:337:inrescue in run' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:325:in
run' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:inrun' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/bin/pod:55:in
<top (required)>' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:inload' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:in
Exception: Error running pod install