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 gem 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
Pod install/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/ Rbconfig.rb:213:warning:insecure World writable Dir/applications/cocos/tools/ant/bin in PATH, mode 040777Re-creating C Ocoapods 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.
Podfile the dependency "isn't used in any concrete target