title: Not able to install cocoapods in Macbook air M1 and every time pod file is missing while creating flutter project
body: <p>when I create any flutter project cocoapods error I am getting.</p>
  <p>[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.</p>
  <p>CocoaPods not installed or not in valid state.
  Error launching application on iPhone 13.
  ]</p>
  <p>and when I enter this command {gem install cocoapods}
  I see this error
  [
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20211126-3876-kzgsqu.rb extconf.rb
  *** extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary
  libraries and/or headers.  Check the mkmf.log file for more details.  You may
  need configuration options.</p>
  <p>Provided configuration options:
  --with-opt-dir
  --without-opt-dir
  --with-opt-include
  --without-opt-include=${opt-dir}/include
  --with-opt-lib
  --without-opt-lib=${opt-dir}/lib
  --with-make-prog
  --without-make-prog
  --srcdir=.
  --curdir
  --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
  --with-ffi_c-dir
  --without-ffi_c-dir
  --with-ffi_c-include
  --without-ffi_c-include=${ffi_c-dir}/include
  --with-ffi_c-lib
  --without-ffi_c-lib=${ffi_c-dir}/lib
  --enable-system-libffi
  --disable-system-libffi
  --with-libffi-config
  --without-libffi-config
  --with-pkg-config
  --without-pkg-config
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in <code>try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:546:in </code>block in try_link0'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in <code>mktmpdir' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:543:in </code>try_link0'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:570:in <code>try_link' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:672:in </code>try_ldflags'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1832:in <code>pkg_config' from extconf.rb:9:in </code>system_libffi_usable?'
  from extconf.rb:42:in `'</p>
  <p>To see why this extension failed to compile, please check the mkmf.log which can be found here:</p>
  <p>/Users/raghib/.gem/ruby/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.4/mkmf.log</p>
  <p>extconf failed, exit code 1</p>
  <p>Gem files will remain installed in /Users/raghib/.gem/ruby/2.6.0/gems/ffi-1.15.4 for inspection.
  ]</p>