简体   繁体   English

CocoaPod:无法从项目中删除Pod

[英]CocoaPod : Unable to remove the Pod from project

I have a xcode (iOS) project in which i am cocoapods. 我有一个cocoapods的xcode(iOS)项目。 I have couple of pods installed: SwiftHTTP & SwiftyJSON . 我安装了几个Pod: SwiftHTTP和SwiftyJSON

Now for some reason I decided to try another pod namely EZAlertController . 现在由于某种原因,我决定尝试另一个吊舱,即EZAlertController Nothing wrong with the pod. 吊舱没有错。 But i decided not to use it. 但是我决定不使用它。 So I need to uninstall this pod from my project. 因此,我需要从项目中卸载此pod。 So far whatI have done: 到目前为止,我已经做了:

  1. remove pod 'EZAlertController', '0.3'from the podfile 从podfile中删除pod'EZAlertController','0.3'
  2. run pod install which gave me the message of 运行pod install给我消息

Removing EZAlertController 删除EZAlertController

  1. No EZAlertController folder in the Pods folder either. Pods文件夹中也没有EZAlertController文件夹。 So far so good. 到现在为止还挺好。
  2. Now i closed the xcode and reran the .xcworkspace file. 现在,我关闭了xcode,然后重新运行.xcworkspace文件。
  3. clean & build routine - all good - Again 清洁和建造常规- 一切都很好-再一次

PS(also tried pod update) PS(也尝试过Pod更新)

The Problem: I am still able to import EZAlertController into the project and run. 问题:我仍然能够将EZAlertController导入项目并运行。 What is really annoying is that I forgot to take a git snapshot. 真正令人讨厌的是我忘了拍摄git快照。 So can't just revert back without loosing considerable amount of code. 因此,不能在不丢失大量代码的情况下恢复原状。

Any idea on how to completely get rid of EZAlertController even after removing as there is still some linking with xcode :( 关于如何完全摆脱EZAlertController的任何想法,即使删除后也是如此,因为仍然存在与xcode的链接:(

尝试清洁项目: Product -> Clean以及Product -> (hold option key) Clean Build Folder

也许删除派生数据可以解决您的问题

I wouldn't remove the pod. 我不会卸下吊舱。 I've had this problem before. 我以前有这个问题。 I tried blowing away all the pods but continued to experience the problem. 我尝试吹走所有豆荚,但继续遇到问题。 What I would do is blow away all the pods, reinstall Cocoapods to the project, then try installing it again. 我要做的是吹走所有吊舱,将Cocoapods重新安装到项目中,然后尝试再次安装。

Alternatively you can add the framework you need manually. 另外,您可以手动添加所需的框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM