rainbow-me / rainbow

🌈‒ the Ethereum wallet that lives in your pocket
https://rainbow.me
GNU General Public License v3.0
3.91k stars 611 forks source link

yarn install-bundle && yarn install-pods is failing #4160

Closed pratikdaigavane closed 1 year ago

pratikdaigavane commented 2 years ago

I'm trying to setup the local development environment on MacOS (Apple Silicon). While running yarn install-bundle && yarn install-pods, I'm getting this error:

yarn run v1.22.19
$ cd ios && bundle install && cd ..
Using rake 13.0.6
Following files may not be writable, so sudo is needed:
  /Library/Ruby/Gems/2.6.0
  /Library/Ruby/Gems/2.6.0/build_info
  /Library/Ruby/Gems/2.6.0/build_info/ffi-1.15.5.info
  /Library/Ruby/Gems/2.6.0/cache
  /Library/Ruby/Gems/2.6.0/doc
  /Library/Ruby/Gems/2.6.0/extensions
  /Library/Ruby/Gems/2.6.0/gems
  /Library/Ruby/Gems/2.6.0/specifications
  /usr/local/bin
Using rexml 3.2.5
Using CFPropertyList 3.0.5
Using concurrent-ruby 1.1.9
Using i18n 1.8.11
Using minitest 5.15.0
Using tzinfo 2.0.4
Using zeitwerk 2.5.1
Using activesupport 6.1.4.4
Using public_suffix 4.0.7
Using addressable 2.8.0
Using httpclient 2.8.3
Using json 2.6.1
Using algoliasearch 1.27.5
Using artifactory 3.0.15
Using atomos 0.1.3
Using aws-eventstream 1.2.0
Using aws-partitions 1.579.0
Using aws-sigv4 1.5.0
Using jmespath 1.6.1
Using aws-sdk-core 3.130.2
Using aws-sdk-kms 1.56.0
Using aws-sdk-s3 1.113.0
Using babosa 1.0.4
Using bundler 2.3.22
Using claide 1.1.0
Using fuzzy_match 2.0.4
Using nap 1.1.0
Using netrc 0.11.0
Using ffi 1.15.4
Using ethon 0.15.0
Using typhoeus 1.4.0
Using cocoapods-core 1.11.2
Using cocoapods-deintegrate 1.0.5
Using cocoapods-downloader 1.5.1
Using cocoapods-plugins 1.0.0
Using cocoapods-search 1.0.1
Using cocoapods-trunk 1.6.0
Using cocoapods-try 1.2.0
Using colored2 3.1.2
Using escape 0.0.4
Using fourflusher 2.3.1
Using gh_inspector 1.1.3
Using molinillo 0.8.0
Using ruby-macho 2.5.1
Using nanaimo 0.3.0
Using xcodeproj 1.21.0
Using cocoapods 1.11.2
Using colored 1.2
Using highline 2.0.3
Using commander 4.6.0
Using declarative 0.0.20
Using digest-crc 0.6.4
Using unf_ext 0.0.8.1
Using unf 0.1.4
Using domain_name 0.5.20190701
Using dotenv 2.7.6
Using emoji_regex 3.2.3
Using excon 0.92.2
Using faraday-em_http 1.0.0
Using faraday-em_synchrony 1.0.0
Using faraday-excon 1.1.0
Using faraday-httpclient 1.0.1
Using multipart-post 2.0.0
Using faraday-multipart 1.0.3
Using faraday-net_http 1.0.1
Using faraday-net_http_persistent 1.2.0
Using faraday-patron 1.0.0
Using faraday-rack 1.0.0
Using faraday-retry 1.0.3
Using ruby2_keywords 0.0.5
Using faraday 1.10.0
Using http-cookie 1.0.4
Using faraday-cookie_jar 0.0.7
Using faraday_middleware 1.2.0
Using fastimage 2.2.6
Using jwt 2.3.0
Using memoist 0.16.2
Using multi_json 1.15.0
Using os 1.1.4
Using signet 0.16.1
Using googleauth 1.1.3
Using mini_mime 1.1.2
Using trailblazer-option 0.1.2
Using uber 0.1.0
Using representable 3.1.1
Using retriable 3.1.2
Using webrick 1.7.0
Using google-apis-core 0.4.2
Using google-apis-androidpublisher_v3 0.19.0
Using google-apis-playcustomapp_v1 0.7.0
Using google-apis-iamcredentials_v1 0.10.0
Using google-apis-storage_v1 0.13.0
Using google-cloud-env 1.6.0
Using google-cloud-errors 1.2.0
Using google-cloud-core 1.6.0
Using google-cloud-storage 1.36.2
Using mini_magick 4.11.0
Using naturally 2.2.1
Using optparse 0.1.1
Using plist 3.6.0
Using rubyzip 2.3.2
Using security 0.1.3
Using simctl 1.6.8
Using terminal-notifier 2.0.0
Using unicode-display_width 1.8.0
Using terminal-table 1.8.0
Using tty-screen 0.8.1
Using tty-cursor 0.7.1
Using tty-spinner 0.9.3
Using word_wrap 1.0.0
Using rouge 2.0.7
Using xcpretty 0.3.0
Using xcpretty-travis-formatter 1.0.1
Using fastlane 2.205.2
Bundle complete! 2 Gemfile dependencies, 115 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
✨  Done in 0.57s.
yarn run v1.22.19
$ cd ios && bundle exec pod install --repo-update && cd ..
Could not find fastlane-2.205.2, cocoapods-1.11.2, artifactory-3.0.15, aws-sdk-s3-1.113.0, babosa-1.0.4, colored-1.2, commander-4.6.0, 
dotenv-2.7.6, emoji_regex-3.2.3, excon-0.92.2, faraday-1.10.0, faraday-cookie_jar-0.0.7, faraday_middleware-1.2.0, fastimage-2.2.6, 
google-apis-androidpublisher_v3-0.19.0, google-apis-playcustomapp_v1-0.7.0, google-cloud-storage-1.36.2, highline-2.0.3, jwt-2.3.0, 
mini_magick-4.11.0, multipart-post-2.0.0, naturally-2.2.1, optparse-0.1.1, plist-3.6.0, rubyzip-2.3.2, security-0.1.3, simctl-1.6.8, terminal-notifier-2.0.0, 
terminal-table-1.8.0, tty-screen-0.8.1, tty-spinner-0.9.3, word_wrap-1.0.0, xcpretty-0.3.0, xcpretty-travis-formatter-1.0.1, cocoapods-core-1.11.2, 
public_suffix-4.0.7, aws-sdk-core-3.130.2, aws-sdk-kms-1.56.0, aws-sigv4-1.5.0, faraday-em_http-1.0.0, faraday-em_synchrony-1.0.0, 
faraday-excon-1.1.0, faraday-httpclient-1.0.1, faraday-multipart-1.0.3, faraday-net_http-1.0.1, faraday-net_http_persistent-1.2.0, faraday-patron-1.0.0, 
faraday-rack-1.0.0, faraday-retry-1.0.3, http-cookie-1.0.4, google-apis-core-0.4.2, digest-crc-0.6.4, google-apis-iamcredentials_v1-0.10.0, google-apis-storage_v1-0.13.0, google-cloud-core-1.6.0, googleauth-1.1.3, mini_mime-1.1.2, unicode-display_width-1.8.0, 
tty-cursor-0.7.1, 
rouge-2.0.7, activesupport-6.1.4.4, aws-eventstream-1.2.0, aws-partitions-1.579.0, jmespath-1.6.1, domain_name-0.5.20190701, representable-3.1.1,
 retriable-3.1.2, webrick-1.7.0, google-cloud-env-1.6.0, google-cloud-errors-1.2.0, memoist-0.16.2, multi_json-1.15.0, os-1.1.4, signet-0.16.1, 
i18n-1.8.11, zeitwerk-2.5.1, unf-0.1.4, declarative-0.0.20, trailblazer-option-0.1.2, uber-0.1.0, ffi-1.15.4, unf_ext-0.0.8.1 in locally installed gems
Run `bundle install` to install missing gems.
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
deiay commented 2 years ago

Looks like you're installing to your machine's system's ruby version (indicated by the line"Following files may not be writable, so sudo is needed"), and then trying to do pod install with bundle exec which which is likely using a different version of ruby that doesn't have the gems you just installed. Which ruby version manager are you using (e.g. rbenv or rvm)? For rbenv for example, missing step 2 of their installation instructions would lead to this error.

I'd recommend, reinstalling your ruby version manager (e.g. rbenv or rvm) and following all the steps of the installation guide and then trying again

github-actions[bot] commented 1 year ago

Stale issue message