13
votes

I've installed the new cocoapods-0.35.0.rc2, and since that moment my project got totally messed up. I installed it by doing: 'sudo gem install cocoapods --pre' immediately afterwards I've updated the libraries by doing: 'pod install'.
However since that moment I receive the same error in the terminal: 'There is a circular dependency between XMPPFramework/Core and XMPPFramework/Authentication' enter image description here

This error did not appear in the past and no matter what I try:

  1. Installing cocoapods-0.34.4 instead of cocoapods-0.35.0.rc2
  2. Removing XMPPFramework from the Podfile.
  3. Removing all the files from the Podfile.
  4. Cleaning the project
  5. Deleting the content of the DerivedData
  6. Discard all changes... and getting back to the version that used to work.

None of the above helped, I am quite sure that it is not directly related to the XMPPFramework as it did not have any new release lately.

Does anyone know how to solve such situations?

Thanks!

4
For #2 and #3, did you run pod update after removing the items from the podfile? If so, did you verify that the pods were actually removed from your workspace? - Sean Kladek
I didn't, and from your question I understand that I might be missing an important part of how cocoapod work, because I thought that 'pod install' updates the libraries - Shachar
You didn't write that you ran pod install after steps 2 and 3. - mattsson

4 Answers

9
votes

Installation of cocoapods 0.34.1 fixed it for me.

4
votes

It looks like this spec currently has circular dependency issues. This issue is being tracked here for all the specs that have similar issues.

2
votes

Until it's fixed you can remove XMPPFramework by removing it from the Podfile and running pod update, not pod install.

2
votes

For your information, the XMPPFramework pod's has been updated to fix the circular dependency issue and now support Swift as well.

Just add pod 'XMPPFramework' to your Podfile