ios 移除项目中的cocopods依赖

787 阅读1分钟

今天在测试封装的framework时候,使用pod导入了三方库,但是后来我不想要pod了,所以我就把podfilepodfile.lockpods产物都删除了。结果报错如下:

  diff: /../Podfile.lock: No such file or directory   
  diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. 
  Run 'pod install' or update your CocoaPods installation. 
  • 解决方案: 1、打开终端,运行sudo gem install cocoapods-deintegrate安装快速解除项目cocopods依赖的库。 2、安装成功后,cd到你项目的更目录运行pod deintegrate解除项目cocopods依赖。 3、如果需要的话在重新执行pod init运行pod install,重新安装pods库。