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

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

    I had been searching for hours and I found solutions as follow:

    In my case, method 1 works.

    Method 1:

    1. choose the target > go to Build Phrases > click Link Binary With Libraries > remove all libPods.a files
    2. open Terminal > direct to your project > run:

       pod install
      
    3. clean and build project

    ref.1

    Method 2:

    1. open Terminal > direct to your project > run:

      pod deintegrate --verbose    
      pod install --verbose
      

    ref.2

    Method 3:

    1. choose the target > go to Build Settings > click "+" sign
    2. add 2 User-Defined Settings: [to the left = to the right]

      PODS_ROOT = ${SRCROOT}/Pods
      

      and

      PODS_PODFILE_DIR_PATH = ${SRCROOT}/
      

    ref.3

提交回复
热议问题