【问题标题】:Not able to remove .xcworkspace even after running pod clean commands即使在运行 pod clean 命令后也无法删除 .xcworkspace
【发布时间】:2019-08-14 10:52:04
【问题描述】:

我正在尝试删除 pod 依赖以提交到 gitlab

当我执行 pod clean 时,我指的是 Remove or uninstall library previously added : cocoapods,它显示未知命令:clean

pod clean

我希望在提交时删除 pod 文件,在结帐后我想通过运行 pod install 来获取 pod 文件

【问题讨论】:

标签: ios swift xcode cocoapods


【解决方案1】:

请尝试以下命令清除所有 pod 数据。同样要在提交到 git 时忽略 pod 文件,您可以在 .gitignore(隐藏文件)中添加 pod 文件夹路径以忽略代码推送时的特定文件夹。

pod 缓存清理 --all
吊舱解体

rm -rf ~/Library/Caches/CocoaPods

rm -rf Pods

同时清除该应用的派生数据。

【讨论】:

  • 我试过 pod cache clean --all 但 .xcworkspace 仍然存在
  • @mobileapps 你能更新你用来解散 pod 的所有命令吗?我也编辑过可能会回答。
  • sudo gem install cocoapods-clean pod deintegrate pod cache clean --all 我使用的顺序相同
  • 好的。希望这个网址对你有帮助stackoverflow.com/questions/16427421/…
猜你喜欢
  • 1970-01-01
  • 2018-10-03
  • 2019-05-11
  • 1970-01-01
  • 2019-04-20
  • 2022-01-19
  • 2021-11-14
  • 2013-12-27
  • 2019-03-12
相关资源
最近更新 更多