Search code examples
iosswiftios8cocoapodspodspec

Cocoapods error for one project target while others are working fine


I have create 3 project target (Development, Production and Staging).Expect Production other working fine after pull the changes of others while building the production target xcode giving the error : enter image description here

gone through some of the available solution but no success!!!


Solution

  • If you change something the conflict will be occur, do like remove your WorkSpace once and again install or update your Pods,it will Work

    Run pod install or pod update your CocoaPods installation.

    For additional Information see this1

    Choice-2

    there's a problem with Cocoapods in your project. Sometimes cocoapods can get out of sync and you need to re-initiate cocoapods. You should be able to resolve this error by:

    • Deleting the Podfile.lock file in your project folder

    • Deleting the Pods folder in your project folder

    • Execute pod install in your project folder

    • Do a Clean in Xcode

    • Rebuild your project

    Conclusion: don't run pod install while project opened in the Xcode.

    Update answer

    I. Project Cleanup

    1. In the project navigator, select your project
    2. Select your target
    3. Remove all libPods*.a in Linked Frameworks and Libraries

    II. Update CocoaPods

    1. Launch Terminal and go to your project directory.
    2. Update CocoaPods using the command pod install