Cocoapods introduces alamofire various errors and solutions

Source: Internet
Author: User
Tags install cocoapods

First install Cocoapods

Then open TERMINAL,CD into the folder with the. Xcodeproj.

Enter POD Init

You will create a pod file here


Enter the folder, open pod file (preferably with Xcode), and do the following steps

1. Uncomment Platform:ios, ' 9.0 '

2. Pod ' Alamofire ', ' ~> 3.2.1 ' (if not specified version, will default more than 4.0 version, the build may report many errors)

3. If you have multiple target, add 2 to each target


Then return to terminal, enter pod install or pod install--verbose--no-repo-update

Wait for the update to be good. Close project in Xcode, and open the. xcworkspace file from the Finder. This will be the entrance for the future.


This time you can build it first. If not, select project (main project), and then search for legacy in build setting

Change the legacy coverage to Yes. One more time, there should be no mistakes.

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.