Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Cocoapods still does not work after running the script when setting up the with iOS support #23

Open
minhnimble opened this issue Sep 8, 2020 · 0 comments
Assignees

Comments

@minhnimble
Copy link
Member

minhnimble commented Sep 8, 2020

Issue

Encounter this issue when running pod install after executed the script successfully.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'CFPropertyList' (>= 2.3.3, < 4.0) among 80 total gem(s) (Gem::MissingSpecError)

Attached screenshot:
Screen Shot 2020-09-08 at 14 19 31

Attached log:

minhpham@Minhs-MacBook-Pro viper-ios-demo-master % pod install
Traceback (most recent call last):
	12: from /usr/local/Cellar/cocoapods/1.9.3/libexec/bin/pod:23:in `<main>'
	11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
	10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:303:in `synchronize'
	 9: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:304:in `block in activate_bin_path'
	 8: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
	 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
	 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1452:in `block in activate_dependencies'
	 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
	 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
	 2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
	 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in activate_dependencies'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'CFPropertyList' (>= 2.3.3, < 4.0) among 80 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/minhpham/.rvm/gems/ruby-2.7.0:/Users/minhpham/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0:/usr/local/Cellar/cocoapods/1.9.3/libexec', execute `gem env` for more information
minhpham@Minhs-MacBook-Pro viper-ios-demo-master % gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 3.1.4
  - RUBY VERSION: 2.7.0 (2019-12-25 patchlevel 0) [x86_64-darwin19]
  - INSTALLATION DIRECTORY: /Users/minhpham/.rvm/gems/ruby-2.7.0
  - USER INSTALLATION DIRECTORY: /Users/minhpham/.gem/ruby/2.7.0
  - RUBY EXECUTABLE: /Users/minhpham/.rvm/rubies/ruby-2.7.0/bin/ruby
  - GIT EXECUTABLE: /usr/local/bin/git
  - EXECUTABLE DIRECTORY: /Users/minhpham/.rvm/gems/ruby-2.7.0/bin
  - SPEC CACHE DIRECTORY: /Users/minhpham/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/minhpham/.rvm/rubies/ruby-2.7.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-19
  - GEM PATHS:
     - /Users/minhpham/.rvm/gems/ruby-2.7.0
     - /Users/minhpham/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/minhpham/.rvm/gems/ruby-2.7.0/bin
     - /Users/minhpham/.rvm/gems/ruby-2.7.0@global/bin
     - /Users/minhpham/.rvm/rubies/ruby-2.7.0/bin
     - /Users/minhpham/.asdf/shims
     - /Users/minhpham/.asdf/bin
     - /Users/minhpham/.bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/local/MacGPG2/bin
     - /Library/Apple/usr/bin
     - /Users/minhpham/.rvm/bin

Expected

Run pod install in a project that support Pods should work after the script is executed successfully.
A good reference for fixing this issue: fastlane/fastlane#12296

Steps to reproduce

  1. Run the laptop script, select y for iOS setup.
  2. Wait for the script to complete.
  3. Restart the machine.
  4. Open Terminal -> Execute 'pod install' in a project that can support Pods.
  5. Observe the result
@roman-nimble roman-nimble self-assigned this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants