Cocoapods Error: The dependency ' afnetworking ' is not used on any concrete target

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.