londonappbrewery / Clima-Flutter

Starter code for the Clima Project from the Complete Flutter Development Bootcamp
https://www.appbrewery.co
155 stars 741 forks source link

Unable to run the app after adding package Geolocator #20

Open matheb04 opened 3 years ago

matheb04 commented 3 years ago

I am getting the following error after adding the geolocator package to my project. Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Upgrading project.pbxproj Legacy build system detected, removing /Users/xxxxxxxxxxxxxxx/Documents/development/android_studio_projects/Clima-Flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings Project base configurations detected, removing. Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

CocoaPods not installed or not in valid state. Error launching application on iPhone 11 Pro Max.

zjdaniels1985 commented 3 years ago

You need to install cocoapods on your mac:

M1 mac (not old or intel cpu):

open Terminal type in the following:

_sudo arch -x8664 gem install ffi

Next, install Cocoapods:

sudo gem install cocoapods

Intel CPU mac (not Apple Silicon M1):

open Terminal type in the following:

sudo gem install cocoapods