카테고리 없음

'pod install' command failed with code 1.

Error Message

'pod install' command failed with code 1.
Error message:
Analyzing dependencies

       Please, check that podfile contains following lines in header:
       source 'https://cdn.cocoapods.org'

        Please, check that each target depended on shared contains following dependencies:

Solution

https://youtrack.jetbrains.com/issue/KT-49418

 

[KMM Wizard] Android Studio BumbleBee 2021.1.1 Beta1 | Gradle Build Failed As Soon As Completes Wizard Due To "pod install" Task

(Sorry I can't find a project for AS KMM or KMM alone, so I chose AppCode KMM, please sort it out for me. If I need to file this in diff board, plz let me know. Thanks a lot for looking into this)

youtrack.jetbrains.com

 

  1. Install ruby 2.7 via homebrew brew install ruby@2.7 (because the newest ruby can't install the latest cocoapods-generate)
  2. Add Installed ruby to your zsh configuration echo 'export /opt/homebrew/opt/ruby@2.7/bin:/opt/homebrew/lib/ruby/gems/2.7.0/bin:$PATH' >> ~/.zshrc
  3. Restart your shell and Android Studio/IDEA to apply the changes from .zshrc
  4. Check what ruby version is used in your terminal or/and Android Studio by executing which ruby (should be $(brew --prefix)/opt/ruby@2.7/bin/ruby)
  5. Install CocoaPods sudo gem install -n /usr/local/bin cocoapods
  6. Check where CocoaPods are installed which pod (should be /usr/local/bin/pod)
  7. Install cocoapods-generate sudo gem install -n /usr/local/bin cocoapods-generate