Error: “The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocoapods

后端 未结 30 2226
小蘑菇
小蘑菇 2020-11-27 10:12

I\'ve encounter an strange issue after installing RestKit with cocoapods. after resolving RestKit dependency for my project with cocoapods and trying to build it, I face thi

相关标签:
30条回答
  • 2020-11-27 10:35

    For me, working in flutter, the configuration was not automatically added due the existing configuration.

    Adding #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig" to Flutter/Release.xcconfig and Flutter/Debug.xcconfig

    solved the issue.

    0 讨论(0)
  • 2020-11-27 10:36

    My working answer is:

    1. Install update your cocoapods by this command: pod update
    2. Install your new pods by this command. pod install
    3. Last one command: sudo gem install cocoapods.
    0 讨论(0)
  • 2020-11-27 10:37

    I found my solution: Run:pod update instead of pod install. The error was fixed!

    0 讨论(0)
  • 2020-11-27 10:37
    • Go to Build Phases -> Check Pods Manifest.lock
    • Replace
    ${PODS_ROOT}/Manifest.lock
    

    with:

    ${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/Manifest.lock
    

    Check in image :

    0 讨论(0)
  • 2020-11-27 10:37

    Run this, and your errors will vanish

    rm -rf Pods && gem install cocoapods && pod install

    0 讨论(0)
  • 2020-11-27 10:38

    Removing pods from the project and re-installing worked for me.

    There is nice GitHub repository that can completely remove the pods from the project.

    Just keep the backup of your PodFile and run below commands.

    • gem install cocoapods-deintegrate
    • gem install cocoapods-clean
    • Go to the project directory and run pod deintegrate
    • Again run pod clean
    • Run pod install

    Clean and run.

    0 讨论(0)
提交回复
热议问题