Hey everyone, trying to add cocoapods to my kmp pr...
# multiplatform
a
Hey everyone, trying to add cocoapods to my kmp project but as soon as I add pod() dependecy inside cocoapods block it throws this error.
Copy code
Execution failed for task ':composeApp:podInstallSyntheticIos'.
> Executing of 'env pod install' failed with code 1 and message: 
  
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
        from /usr/local/bin/pod:23:in `<main>'
        from /usr/local/bin/ruby_executable_hooks:22:in `eval'
        from /usr/local/bin/ruby_executable_hooks:22:in `<main>'
I guess it is because it is using system 2.6 ruby rather than 3.0.0 from rvm. Kdoctor just shows the warning about cocoapods configuration and utf-8 encoding.
which ruby
also point to the correct ruby so I dont know what to do here. Already spent half a day trying to figure it out