I am getting an error while I try to build my iOS app -
/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/activesupport-7.1.3/lib/active_support/core_ext/array/conversions.rb:108:in <class:Array>': undefined method deprecatorā for ActiveSupport:Module (NoMethodError)
deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
^^^^^^^^^^^
Defined in Gemfile and Gemfile.lock CocoaPods Guides - Using a Gemfile . I think this is the case for your setup so please check your Gemfile, you probably have cocoapod version locked to 1.13.0 which you can simply switch to latest version 1.15.2 like this Gemfiles for CocoaPod Versions Ā· GitHub
Best regards,
And it uses a Bitrise provided step āRun Cocopods Installā (where I am getting the error). I do not see any way to find Gemfile. And Bitrise should update the step. Or should I change anything in our POD file. Here is the error in text
ConfigsModel:
command: update
source_root_path: /Users/vagrant/git
podfile_path: PGAudioApp/Podfile
verbose: false
is_cache_disabled: false
Using Podfile: /Users/vagrant/git/PGAudioApp/Podfile
Determining required cocoapods version
Searching for Podfile.lock
Found Podfile.lock: /Users/vagrant/git/PGAudioApp/Podfile.lock
Required CocoaPods version (from Podfile.lock): 1.12.1
Searching for gem lockfile with cocoapods gem
No gem lockfile with cocoapods gem found at:
Using system installed CocoaPods version
Check selected Ruby is installed
Ruby 3.2.3 is installed
Installing cocoapods
Checking cocoapods 1.12.1 gem
Installing
$ gem āinstallā ācocoapodsā āāno-documentā ā-vā ā1.12.1ā
$ rbenv ārehashā
cocoapods version:
$ pod ā1.12.1ā āāversionā
/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/activesupport-7.1.3/lib/active_support/core_ext/array/conversions.rb:108:in <class:Array>': undefined method deprecatorā for ActiveSupport:Module (NoMethodError)
deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
^^^^^^^^^^^
Did you mean? deprecate_constant
from /Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/activesupport-7.1.3/lib/active_support/core_ext/array/conversions.rb:8:in <top (required)>' from <internal:/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:86:in requireā
from internal:/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:86:in require' from /Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods.rb:9:in <top (required)>ā
from internal:/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:86:in require' from <internal:/Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:86:in requireā
from /Users/vagrant/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/bin/pod:36:in <top (required)>' from /Users/vagrant/.asdf/installs/ruby/3.2/bin/pod:25:in loadā
from /Users/vagrant/.asdf/installs/ruby/3.2/bin/pod:25:in `ā
command failed, error: exit status 1
Can you check your Podfile and Podfile.lock? I found something interesting in your log
Using Podfile: /Users/vagrant/git/PGAudioApp/Podfile
Determining required cocoapods version
Searching for Podfile.lock
Found Podfile.lock: /Users/vagrant/git/PGAudioApp/Podfile.lock
Required CocoaPods version (from Podfile.lock): 1.12.1