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

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

    The steps that worked for me (XCode 8.3.3/XCode 9 beta with a Swift 3.1 project)

     - Navigate to your project directory
     - pod install //which then asks you to do the next step
     - pod repo update //takes a while to update the repo
     - pod update
     - pod install
     - Close Xcode session
     - Open and Clean the project
     - Build/Run
    

    Also make sure you open the .xcworkspace file rather than the project file (.xcodeproj) when working with pods. That should solve any errors with linking such as "Apple Mach -O Linker command failed"

提交回复
热议问题