Description
Xcode version - 16.2
Mac OS - 15.3.1 (24D70)
facing this issue when doing pod update / pod install
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod install
Report
-
What did you do?
-
What did you expect to happen?
-
What happened instead?
Stack
CocoaPods : 1.16.2
Ruby : ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
RubyGems : 3.6.2
Host : macOS 15.3.1 (24D70)
Xcode : 16.2 (16C5032a)
Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.4.1/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 60c1d0f964e87b75db1c743be2bfc237c644f445
trunk - CDN - https://cdn.cocoapods.org/
Plugins
cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
Podfile
workspace 'TestApp'
project 'TestApp.xcodeproj'
use_frameworks!
platform :ios, "15.0"
def myPods
pod 'AFNetworking'
pod 'MBProgressHUD', '~> 0.8'
pod 'HCSStarRatingView'
pod 'FirebaseCrashlytics'
pod 'FirebaseAnalytics'
pod 'FirebasePerformance'
pod 'Analytics'
pod 'RecaptchaEnterprise'
pod 'GooglePlaces', '8.5.0'
pod 'GoogleSignIn'
pod 'Statsig'
pod 'Heap'
end
### Error
NoMethodError - undefined method 'remove_referrer' for nil
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object_list.rb:218:in 'block in Xcodeproj::Project::ObjectList#perform_deletion_operations'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object_list.rb:216:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object_list.rb:216:in 'Xcodeproj::Project::ObjectList#perform_deletion_operations'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object_list.rb:113:in 'Xcodeproj::Project::ObjectList#delete'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:238:in 'block in Xcodeproj::Project::Object::AbstractObject#remove_reference'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:236:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:236:in 'Xcodeproj::Project::Object::AbstractObject#remove_reference'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:606:in 'block (2 levels) in Pod::Installer::UserProjectIntegrator::TargetIntegrator#add_pods_library'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:603:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:603:in 'block in Pod::Installer::UserProjectIntegrator::TargetIntegrator#add_pods_library'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:594:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:594:in 'Pod::Installer::UserProjectIntegrator::TargetIntegrator#add_pods_library'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:564:in 'block in Pod::Installer::UserProjectIntegrator::TargetIntegrator#integrate!'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in 'Pod::UserInterface.section'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:560:in 'Pod::Installer::UserProjectIntegrator::TargetIntegrator#integrate!'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:146:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:146:in 'Pod::Installer::UserProjectIntegrator#integrate_user_targets'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:73:in 'Pod::Installer::UserProjectIntegrator#integrate!'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:929:in 'block in Pod::Installer#integrate_user_project'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in 'Pod::UserInterface.section'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:925:in 'Pod::Installer#integrate_user_project'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:185:in 'Pod::Installer#integrate'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:170:in 'Pod::Installer#install!'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in 'Pod::Command::Install#run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in 'CLAide::Command.run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in 'Pod::Command.run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/bin/pod:55:in '<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in 'Kernel#load'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in '
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%27remove_referrer%27+for+nil&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- NoMethodError - undefined method `remove_referrer' for nil:NilClass
https://github.com/CocoaPods/CocoaPods/issues/10271 [closed] [1 comment]
31 Dec 2020
- Cannot Deintegrate
https://github.com/CocoaPods/CocoaPods/issues/8936 [closed] [5 comments]
03 Jul 2019
- How to remove a file From CocoaPods to avoid duplicates?
https://github.com/CocoaPods/CocoaPods/issues/3107 [closed] [2 comments]
14 Jul 2016