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

后端 未结 30 2228
小蘑菇
小蘑菇 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:38

    Please do the following steps:

    1: Deleting the Podfile.lock file in your project folder

    2: Deleting the Pods folder in your project folder

    3: Execute 'pod install' in your project folder

    4: Do a "Clean" in Xcode

    5: Rebuild your project

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

    If you download the project from github or copy from other place, then the dependencies library do not exists, there will be this issue.

    You just need to cd to the project/project_name directory in terminal , use ls to check whether there is a Podfile file.

    if there exists the Podfile, you just need to install the dependencyies:

    pod install
    
    0 讨论(0)
  • 2020-11-27 10:40

    Try to set up the correct target in Podfile and then run pod update or pod install

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

    I was able to fix that by updating CocoaPods.

    I. Project Cleanup

    1. In the project navigator, select your project
    2. Select your target
    3. Remove all libPods*.a in Build Phases > Link Binary With Libraries

    II. Update CocoaPods

    1. Launch Terminal and go to your project directory.
    2. Update CocoaPods using the command pod install
    0 讨论(0)
  • 2020-11-27 10:41

    I tried everything, but the problem persisted. After that I did this and it worked ASAP (As Smooth As Possible).

    1. Open the .xcworkspace file.
    2. Change to legacy build system if using Cordova on Xcode 10.
    3. Go to target/project of Podfile. Select Deployment traget as 11+
    4. Then Change the debug and release to Pods-.build/release. It was App.debug/release in my case.Pic attached. Hope it helps.
    0 讨论(0)
  • 2020-11-27 10:41

    if your pods are empty

    1. remove copy pods resources and check pods manifest.
    2. lock from build phases settings of your project
    0 讨论(0)
提交回复
热议问题