Recently updated the next cocoapods, today again pod update encountered this error:
The general meaning is that the library does not use the specified target.
Find the following information, found that the new version of Cocoapods in the Podfile, you must specify the target:
Like what:
Platform:ios, ' 7.0 ' target ' testswift ' dopod ' afnetworking ' pod ' sdwebimage ' pod ' jsonmodel ' pod ' mjrefresh ' pod ' Sdcyclescrollview ', ' ~> 1.64 ' end
Workaround:
Add to
Target ' Testswift ' do
End
These two paragraphs can be declared.
Note: Testswift is your target name.
In fact, in the old version, if we have more than one target in a project, to reference the third-party library in different target, it is necessary to specify a specific target, but now after the upgrade, it is required even if a target, you have to specify, this is more formal.
Cocoapods Error: The dependency ' afnetworking ' is not used on any concrete target