본문 바로가기
Development Solutions/iOS & OS X

[ios][flutter] Invalid Podfile file: undefined method `enable_user_defined_build_types!'

by studio ODOC 2023. 1. 14.
반응형

[ios][flutter]

Invalid Podfile file: undefined method `enable_user_defined_build_types!'

 

해결 방법

터미널을 열고 아래 명령어를 차례대로 입력한다.

  1. gem cleanup
  2. brew uninstall cocoapods
  3. sudo gem uninstall cocoapods
  4. sudo gem install cocoapods -v 1.10.0 -n /usr/local/bin
  5. sudo gem install cocoapods-user-defined-build-types
  6. pod install --repo-update (<- ios 폴더에서 수행)
반응형