jean
01/29/2022, 9:19 PMDependency on pods requires cocoapods-generate plugin to be installed.
If you plan to add dependencies on third party pods, don’t forget to install it by executing ‘gem install cocoapods-generate’ in terminal.and this error
Execution failed for task ':shared:podInstall'.
> 'pod install' command failed with code 1.
Error message:
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:
I did follow this 7-steps https://youtrack.jetbrains.com/issue/KT-49418#focus=Comments-27-5429773.0-0 but it still doesn’t work. I had to adjust it a bit since I have a Mac/Intel computer. I added this to my ~/.zshrc
export LANG=en_US.UTF-8
export PATH="/usr/local/opt/ruby@2.7/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH"
I did try both
sudo gem install -n /usr/local/bin cocoapods
sudo gem install -n /usr/local/bin cocoapods-generate
and
sudo gem install cocoapods
sudo gem install cocoapods-generate
Anything else I should try?Viacheslav Kormushkin
01/30/2022, 9:14 AM