Error

Invalid `Podfile` file: /Users/UserName/flutter_projects/AppName/Flutter/Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first. Invalid `Podfile` Generated.xcconfig. must exist. If you're running pod install manually, make sure flutter pub get is executed first.   - GEM PATHS: - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 - /Users/dandan/.gem/ruby/2.6.0

Solution

sudo gem install cocoapods -n /usr/local/bin