iOS pod library updated to 1.0 or 1.0.1 Correct modification of the Podfile file

Source: Internet
Author: User

Today see Cocopods updated to 1.0.1, when the update to the 1.0 did not find, just updated, immediately after a lot of errors.

If not updated, it is recommended not to update!!! The writing is in trouble!

Now record how to remove the error step-by-step:

1, Pod--version view version number, now if look less than 1.0.1

Enter pod repo update for the pod version.

Enter pod--version again to see if the version number is 1.0.1

If so, congratulations on your trip to the pits!

2. Update Podfile file

This is my previous

Platform:ios, ' 8.0 ' pod ' jpush ' pod ' sdautolayout ' pod ' afnetworking ' pod ' ytxanimations ',: Subspecs = ["Animatecss", " Csshake "," Magiccss "]

The name of the project works after the update to My App

Platform:ios, ' 8.0 ' target ' My App ' dopod ' jpush ' pod ' sdautolayout ' pod ' afnetworking ' pod ' ytxanimations ',: Subspecs = ["Animatecss", "Csshake", "Magiccss"]end

And then the pod install recompile, and there's a problem.

3, update the Podfile file again, add this sentence will be able to use_frameworks!

Again, pod install is ready.

Platform:ios, ' 8.0 ' use_frameworks!target ' My App ' dopod ' jpush ' pod ' sdautolayout ' pod ' afnetworking ' pod ' ytxanimations ' ,: Subspecs = ["Animatecss", "Csshake", "Magiccss"]end

iOS pod library updated to 1.0 or 1.0.1 Correct modification of the Podfile file

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.