Reputation: 23
So I have a large Xcode project with Obj-C and Swift code, with many many cocoapods dependencies.
But my developer of choice doesn't work with cocoapod dependencies. I know this is a bit strange but he just doesn't want to set up his Mac with pods and it's not negotiable with him (also switching devs is not an option).
So...my question. Is it possible to remove all cocoapod dependencies and still have the project compile and run as it currently does? I have a feeling people will say - it depends on your project. But if I could just get a rough "Yes it is possible" or "No it is always impossible" that would be great. And if it is possible, how does one go about starting such a task?
I don't know if this will help but here's a list of all the current Cocoapod dependencies in the project:
Upvotes: 0
Views: 236
Reputation: 359
You can remove the cocoapods but in order for your project to build, You will have to add the dependances to your project one by one.
Personally I don't recommend doing that. it's a lot of work and if you changed your developer in the future you might need to re-add them once more.
Upvotes: 3
Reputation: 96
It's not recommended, but as you said it's not possible to switch developer at this stage. Just deintegrate the project from cocoapods, and then after manually copy paste your require files/library to your project.
To Deintegrate Pod just go to your project folder using Terminal. and Type
pod deintegrate
after that Manually copy/paste library files to your project in Xcode.
Upvotes: 1
Reputation: 924
Yes it is possible. But where your app is using those dependencies, it will show error.
Just follow this two steps to remove.
remove/comment out all dependencies. For comment out just add # before every dependency.(i.e #pod 'Countly')
Install pod again with "pod install" command.
Upvotes: 0
Reputation: 324
If I understand your question your developer doesn't have experience in cocoapods that's why he does not want it. I tell you if you remove your cocoapods dependencies library while your app is using those dependencies, it will not work. That's why it is call dependencies because your app is dependent in those libraries. Unless your app does not use those libraries anymore you can remove it but I guess that's not the case.
Your developer should have an alternate dependency manager, other than cocoapods there are carthage and Swift Package manager.
Upvotes: 0