1. 程式人生 > >ios之error: The sandbox is not in sync with the Podfile.lock.

ios之error: The sandbox is not in sync with the Podfile.lock.

當我們編譯ios工程時,有時會遇到這個報錯。此時,關閉當前的工作空間,刪除以前的.xcworkspace檔案,然後執行pod install命令,install之後,重新開啟專案,clean並build專案,問題解決。

如果遇到pod install命令執行失敗,可以參考連線https://blog.csdn.net/liuzehn/article/details/81941305