Hey guys, Quick question. Has anyone had a simil...
# getting-started
e
Hey guys, Quick question. Has anyone had a similar issue when trying to build gradle using the following
compose-multiplatfor-ios-android
template on Android Stufio? https://github.com/JetBrains/compose-multiplatform-ios-android-template/#readme I am running on an M1 and got all the required software installed. Thanks in advance! 🙌
a
Did you validate that you have all installed? Using Kdoctor
Screenshot_20230816-081713.png
e
Hey @Alejandro Rios, yes I did. Each time I restart my terminal (or Android Studio) I see the following message (see first image attached) when running
kdoctor
, and it complains about
CocoaPods is not compatible with system ruby installation on Apple M1 computers.
. I then tried the link to reinstall Cocoapods, but when restarting the terminal I see the same message if running kdoctor However, if I run:
export PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH
I then only see the following message:`CocoaPods requires your terminal to be using UTF-8 encoding.` (see second image attached) Then even though adding the suggested exports to the
~/.zprofile
(see third image) I keep seeing the same
error/issues
(second image) if I re-run
kdoctor
And when trying to build gradle, I keep seeing the original error (last image). I guess that the issue is with the
cocoapods
installation? 🤔
w
Cocoapods is very picky, you need to install a specific Ruby version. Kdoctor gives you a link that you can navigate to to resolve this issue.