Content Summary:
Podfile after upgrading to the latest version, the contents of the pod must clearly indicate the target of the third-party library used, otherwise the dependency "is not used in any concrete target such errors.
The following are stated from three steps:
1. Podfile Upgrade
To view the pod version:
Pod--version
Pod Upgrade (This is the upgrade to the 1.0.0.beta.2 version):
sudo Install cocoapods--pre
2. Error content:
The content of my podfile is:
Platform:ios,'7.0'pod'Reactivecocoa','2.1.8'pod'Objectiveflickr','2.0.4'pod'Linqtoobjectivec','2.0.0'pod'Sdwebimage','3.6'
An error occurred after Pod install the dependency ' is not used in any concrete target
PodInstall/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/UNIVERSAL-DARWIN14/RBCONFIG.RB:213: Warning:insecure World Writabledir/applications/cocos/tools/ant/bininchPATH, Mode040777Re-creating CocoaPods due to major version update. Updating Local Specs repositoriesanalyzing dependencies[ !] The dependency ' Reactivecocoa (= 2.1.8) ' is not used on any concrete target. The dependency ' objectiveflickr (= 2.0.4) ' is not used on any concrete target. The dependency ' linqtoobjectivec (= 2.0.0) ' is not used on any concrete target. The dependency ' sdwebimage (= 3.6) ' is not used on any concrete target.
3. Modification Method:
Podfile Content Changes:
Platform:ios,'7.0'Target"Rwtflickrsearch" Dopod'Reactivecocoa','2.1.8'pod'Objectiveflickr','2.0.4'pod'Linqtoobjectivec','2.0.0'pod'Sdwebimage','3.6'End
If you run the pod install again, it will succeed.
Cocoapods Error: The dependency "isn't used in any concrete target