Hacker News new | ask | show | jobs
by yapcguy 4497 days ago
From the Github page:

"CDTDatastore is available through CocoaPods, to install it add the following line to your Podfile:

Why CocoaPods? What is wrong with a static library? Or simply adding the relevant class files to a project?

I don't want to have Ruby infrastructure just to add a bunch of files to a project! Why are Ruby folk obsessed with doing things their 'Gems' way? They bring the same mentality to Go(lang). I always hear (ex)-Ruby folk asking questions at meetups about packaging and versioning...

1 comments

As long as you also pull in the dependencies specified in the podfile, you'll be absolutely fine just adding the class files to the project. I've tried to be careful to maintain that as a viable option. That you retain the option is one of the strengths of Cocoapods to my mind.

While far from perfect, I chose to use Cocoapods as it's becoming the defacto standard in the iOS community. I've used it in my apps, and have found it easier to manage my deps than a bunch of git submodules or copying source code into my projects.

The problems with static libraries on iOS have been well documented at [1]. Essentially, that you can't build static libraries as a third-party for iOS without resorting to low-level trickery. This seemed like it would become a maintenance burden vs. the Cocoapods approach.

[1]: http://landonf.bikemonkey.org/code/ios/Radar_15800975_iOS_Fr...