SolvedCocoaPods pod update error with CDN

Report

What did you do?

Run pod update

What did you expect to happen?

success

What happened instead?

an error occurred.

Error

NameError - uninitialized constant Concurrent::Promises
Did you mean?  Concurrent::Promise
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-core-1.7.4/lib/cocoapods-core/cdn_source.rb:60:in `block in preheat_existing_files'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-core-1.7.4/lib/cocoapods-core/cdn_source.rb:59:in `map'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-core-1.7.4/lib/cocoapods-core/cdn_source.rb:59:in `preheat_existing_files'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-core-1.7.4/lib/cocoapods-core/cdn_source.rb:229:in `update'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/sources_manager.rb:93:in `block (2 levels) in update'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/sources_manager.rb:92:in `block in update'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/sources_manager.rb:91:in `each'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/sources_manager.rb:91:in `update'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer/analyzer.rb:140:in `block in update_repositories'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer/analyzer.rb:138:in `each'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer/analyzer.rb:138:in `update_repositories'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer.rb:217:in `block in resolve_dependencies'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer.rb:216:in `resolve_dependencies'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/installer.rb:156:in `install!'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/command/update.rb:62:in `run'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/lib/cocoapods/command.rb:52:in `run'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.7.4/bin/pod:55:in `<top (required)>'
/Users/mbcore/.rvm/rubies/ruby-2.4.0/bin/pod:23:in `load'
/Users/mbcore/.rvm/rubies/ruby-2.4.0/bin/pod:23:in `<main>'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/bin/ruby_executable_hooks:24:in `eval'
/Users/mbcore/.rvm/gems/ruby-2.4.0@global/bin/ruby_executable_hooks:24:in `<main>'

CocoaPods Environment

Stack

   CocoaPods : 1.7.4
        Ruby : ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin18]
    RubyGems : 2.7.7
        Host : Mac OS X 10.14.5 (18F132)
       Xcode : 10.2.1 (10E1001)
         Git : git version 2.18.0
Ruby lib dir : /Users/mbcore/.rvm/rubies/ruby-2.4.0/lib
Repositories : 
               MBCModuleSpecs - https://git.mbcore.com/iOSModuleSwift/MBCModuleSpecs.git @ 062d8dfe576ebb7195caf1801f33a3d1e14d06a5
               mbcore-iosmodule-mbcspecs - https://git.mbcore.com/iOSModule/MBCSpecs.git @ a6d7a4f80475b4fe8522d5f79236dcbcfe409250
               MBCSpecs - git@git.mbcore.com:iOSModule/MBCSpecs.git @ a6d7a4f80475b4fe8522d5f79236dcbcfe409250

Installation Source

Executable Path: /Users/mbcore/.rvm/rubies/ruby-2.4.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-playgrounds : 1.2.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Project that demonstrates the issue

podfile like:

source 'private pod url'
source 'https://cdn.cocoapods.org/'

platform :ios, '10.0'

inhibit_all_warnings!

install! 'cocoapods',
:generate_multiple_pod_projects => true,
:incremental_installation => true

target 'TargetName' do

some pods ...

end

19 Answers

โœ”๏ธAccepted Answer

And? How to fix?

gem install concurrent-ruby or gem update concurrent-ruby.

Other Answers:

Fixed in beta 2 CocoaPods/Core#577.

gem install concurrent-ruby

updated above command work for me: sudo gem install concurrent-ruby

sudo gem install concurrent-ruby
after installing that it works for me!!
Great Thanks.

More Issues: