Error: "The Sandbox Is Not in Sync with the Podfile.Lock..." After Installing Restkit with Cocoapods

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

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

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

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

The sandbox is not in sync with the Podfile.lock-ios

Run 'pod install' or update your CocoaPods installation.

You have answer in the error itself !

The error message states that you should update your CocoaPods installation.

You could remove libPods in frameworks and libraries and update Cocoapods using pod install.

Also:

clean and build the project

SO references :

CocoaPods Errors on Project Build

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

The sandbox is not in sync with the Podfile.lock in ionic 3 ios build

Try the following:

  • quit Xcode
  • navigate to project folder
  • delete Pods folder
  • delete Podfile.lock
  • call from command line pod install
  • important: open the the project via .xcworkspace (and not via .xcodeproj)

If that doesn't work, make a build settings checks:

  • in Navigator go to the root node
  • in the editor on the right choose 'Build Settings'
  • scroll down: there you should see the following entries:
    Sample Image
    PODS_PODFILE_DIR_PATH should show your project directory (where PODFILE resides, here you can enter ${SRCROOT}/., and for PODS_ROOT you can enter ${SRCROOT}/Pods)

Correct the entries if necessary

Error : The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation

There are probably some CocoaPods related files and rules left over. You can use the pod deintegrate command to remove CocoaPods from your project. See https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate

Make sure you have your project in version control or backed up before doing this, so if something goes wrong you can always roll back.



Related Topics



Leave a reply



Submit