Dear All, I’m facing the following problem, trying...
# compose-ios
a
Dear All, I’m facing the following problem, trying to setup KMP for development under MacOS Ventura ver 13.5 Beta: sudo gem install cocoapods Password: ERROR: While executing gem ... (Gem::FilePermissionError) You don’t have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory. /Library/Ruby/Site/2.6.0/rubygems/installer.rb714in `verify_gem_home’ /Library/Ruby/Site/2.6.0/rubygems/installer.rb904in `pre_install_checks’ /Library/Ruby/Site/2.6.0/rubygems/installer.rb302in `install’ /Library/Ruby/Site/2.6.0/rubygems/resolver/specification.rb104in `install’ /Library/Ruby/Site/2.6.0/rubygems/request_set.rb194in `block in install’ /Library/Ruby/Site/2.6.0/rubygems/request_set.rb182in `each’ /Library/Ruby/Site/2.6.0/rubygems/request_set.rb182in `install’ /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb214in `install_gem’ /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb230in `block in install_gems’ /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb223in `each’ /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb223in `install_gems’ /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb169in `execute’ /Library/Ruby/Site/2.6.0/rubygems/command.rb327in `invoke_with_build_args’ /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb252in `invoke_command’ /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb192in `process_args’ /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb150in `run’ /Library/Ruby/Site/2.6.0/rubygems/gem_runner.rb51in `run’ /usr/bin/gem21in `<main>' Can you help me bypass this problem? I thought sudo should me be more than enough to override any access restrictions
p
Just for your information cocoapods is not required anymore. Back to your question, it is advisable to not use the gem install with sudo. Use another way without sudo
a
This has nothing to do with Compose, is a problem with MacOS and ruby, you could try this steps
a
Thank you guys very much for the fast responses
@Pablichjenkov Could you please advice a solution/URL …?
@Alejandro Rios All I can say is “Thank you!” I have this “pod --version 1.12.1"
a
Then you should uninstall it and reinstall again with the steps on the image
a
I did them, every step
I see this in github
p
The same Page I believe has instructions for non sudo installs. I did the installation quite a bit ago, I am migrating to swift package manager or manual framework integration. Anyway, check this stackoverflow see if it helps: https://stackoverflow.com/questions/69805554/kmm-project-setup-with-cocoapods-fails-on-first-compile#74807259
a
Thank you!
👍 1
BTW I do not see an iOS device/s in Android Studio - is there any special reason for this?
p
Do you have active emulators or physical devices connected? Open Xcode go to device window and create an emulator. Honestly I don't know 🤔