What is CocoaPods "(not used)"

After running pod outdated , I get the following output

 Updating spec repo `master` Analyzing dependencies The following pod updates are available: - AFNetworking 2.4.4 -> 2.5.4 (latest version 3.0.0-beta.2) - HexColors 2.2.1 -> 2.2.1 (latest version 3.0.0) - Overcoat 3.0.0 -> (unused) (latest version 3.2.1) - ReactiveCocoa 2.5 -> 2.5 (latest version 4.0.4-alpha-4) 

I have not seen this "unused" term until

i.e.

Overcoat 3.0.0 -> (not used) (latest version 3.2.1)

What is it? And what does it mean?

+8
ios cocoapods
source share
2 answers

After analyzing the source code, I think that (unused) means that Pod is not in your subfile (perhaps you deleted it and did not reinstall it)

 AFNetworking 2.4.4 -> 2.5.4 (latest version 3.0.0-beta.2) ^ ^ ^ ^ Pod name Installed version Podfile version Latest 
+3
source share

Based on the source code that inserts this tag, which looks like this:

 if source_version > lockfile_version matching_spec = unlocked_pods.find { |s| s.name == pod_name } matching_version = matching_spec ? matching_spec.version : '(unused)' [pod_name, lockfile_version, matching_version, source_version] end 

It seems that this simply means that CocoaPods could not find this Pod in your “unlocked containers”.

I'm not talking about Ruby well enough to pinpoint what an “unlocked” module is (and I'm not familiar enough with CocoaPods to hear this term necessarily ... but I know a “lock file” and maybe it's connected) but here is the source code to determine this :

 def unlocked_pods @unlocked_pods ||= begin pods = [] UI.titled_section('Analyzing dependencies') do pods = Installer::Analyzer.new(config.sandbox, config.podfile). analyze(false). specs_by_target.values.flatten.uniq end pods end end 
+1
source share

All Articles