카테고리 없음
'pod install' command failed with code 1.
Dev감자튀김
2022. 1. 3. 22:52
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
- Install ruby 2.7 via homebrew brew install ruby@2.7 (because the newest ruby can't install the latest cocoapods-generate)
- 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
- Restart your shell and Android Studio/IDEA to apply the changes from .zshrc
- 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)
- Install CocoaPods sudo gem install -n /usr/local/bin cocoapods
- Check where CocoaPods are installed which pod (should be /usr/local/bin/pod)
- Install cocoapods-generate sudo gem install -n /usr/local/bin cocoapods-generate