在開發(fā)過(guò)程中經(jīng)常會(huì)去下載大神的demo進(jìn)行學(xué)習(xí)和參考,這些下載下來(lái)的demo往往會(huì)遇到The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.這種錯(cuò)誤,這是因?yàn)榈谌綆?kù)沒(méi)有進(jìn)行更新
我們用終端進(jìn)行更新
打開終端,cd到項(xiàng)目根目錄(不知道路徑的可以手動(dòng)把項(xiàng)目拖進(jìn)終端)
然后pod setup 更新下本地的pod spec 庫(kù)時(shí)間有點(diǎn)長(zhǎng),可以先小憩一會(huì)
然后再 執(zhí)行:pod update --verbose --no-repo-update 更新pod,然后再運(yùn)行
完美解決