Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate files when Pod install / update #328

Closed
jimijon opened this issue Feb 12, 2019 · 16 comments
Closed

duplicate files when Pod install / update #328

jimijon opened this issue Feb 12, 2019 · 16 comments

Comments

@jimijon
Copy link

jimijon commented Feb 12, 2019

When running:

pod 'ChatSDK'
pod 'ChatSDK/UI'
pod 'ChatSDKFirebase/Adapter'
pod 'ChatSDKFirebase/FileStorage'
pod 'ChatSDKFirebase/Push'
pod 'ChatSDKFirebase/SocialLogin'

This creates two FirebaseNetworkAdaptor directories. One under ChatSDK/ChatSDKFirebase and the other under ChatSDKFirebase/

@bensmiley
Copy link
Contributor

I think this has to be a caching issue because if you look at the ChatSDK.podspec file. The ChatSDKFirebaseAdapter has been commented out. Can you try the standard steps to update Cocoapods:

  1. pod deintegrate
  2. Delete the following: *.xcworkspace, Podfile.lock, Pods directory, Build directory
  3. pod update

@jimijon
Copy link
Author

jimijon commented Feb 13, 2019

Tried all that about six different times I still get the two directories. I see what you are saying about commenting out.

./ChatSDKModules/ChatSDKModules.podspec :
nu.dependency 'ChatSDK/FirebaseAdapter'

./ChatSDKModules/FirebaseBlocking-4/ChatSDKModules.podspec :
nu.dependency 'ChatSDKFirebase/Adapter'

I think this is where the problem is happening

@bensmiley
Copy link
Contributor

Ok, I see. I think maybe you need to update the ChatSDKModules.podspec.
ChatSDKModules.podspec.zip
Could you try that and let me know if it works?

@jimijon
Copy link
Author

jimijon commented Feb 13, 2019

new error: ld: framework not found ChatSDKModules

@bensmiley
Copy link
Contributor

Could you post a screenshot of where that error is happening? Also, which version of Cocoapods are you using?

@jimijon
Copy link
Author

jimijon commented Feb 13, 2019

screen shot 2019-02-13 at 8 51 45 am

@jimijon
Copy link
Author

jimijon commented Feb 13, 2019

1.6.0

@bensmiley
Copy link
Contributor

Ok, you need to downgrade to 1.5.3 see this issue. CocoaPods/CocoaPods#8502 (comment)

@jimijon
Copy link
Author

jimijon commented Feb 13, 2019

went to 1.5.3 same issue

@jimijon
Copy link
Author

jimijon commented Feb 14, 2019

any other thoughts?

@jimijon
Copy link
Author

jimijon commented Feb 14, 2019

as a sanity check, have you upgraded your modules from a totally clean pre pod environment?
It still feels like CocoaPods to me. Would like the sanity check.

@bensmiley
Copy link
Contributor

@jimijon This is definitely an issue with your Cocoapods setup. If you can give me access to the project I can fix it for you. That may be the quickest way.

@jimijon
Copy link
Author

jimijon commented Feb 15, 2019 via email

@bensmiley
Copy link
Contributor

I fixed the issue with the pod setup but then there is a separated unrelated issue to do with KingFisher. I've pushed my fixes to bens_fixes. If you have more issues with the modules let me know.

@jimijon
Copy link
Author

jimijon commented Feb 15, 2019 via email

@bensmiley
Copy link
Contributor

Actually not much was wrong. I just made sure the podspec was up to date and made sure the module folders were in the same folder as the module podspec. I’m glad you got it all working 👌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants