I’m trying to create a new kmm project using cocoa...
# multiplatform
j
I’m trying to create a new kmm project using cocoapods in android studio but I keep getting this warning
Dependency 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
Copy code
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
Copy code
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
Copy code
sudo gem install -n /usr/local/bin cocoapods
sudo gem install -n /usr/local/bin cocoapods-generate
and
Copy code
sudo gem install cocoapods
sudo gem install cocoapods-generate
Anything else I should try?
v
Hi, may be related to known AS BumbleBee issue, please check this thread, there are some workarounds https://issuetracker.google.com/issues/216364005