I have downloaded a Riot-iOS and follow a build instructions.
When I run '$ bundle install'
Traceback (most recent call last): 2: from /usr/bin/bundle:23:in
<main>' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in
activate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:infind_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /Users/premkumar/Downloads/riot-ios-develop/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run
bundle update --bundler. To install the missing version, run
gem install bundler:2.0.2`
After I run a '$ bundle exec pod install'
Traceback (most recent call last): 2: from /usr/bin/bundle:23:in
<main>' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in
activate_bin_path' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:infind_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /Users/premkumar/Downloads/riot-ios-develop/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run
bundle update --bundler. To install the missing version, run
gem install bundler:2.0.2`
So, I update a gem by running '$gem update --system'
Updating rubygems-update ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
Kindly help me.