News for hackers. Stuff that matters.
Re:Cocoapods: An Objective-C library package manager by Aqua_Geek on Saturday September 17, 2011 @11:16PM (#3009378)
Out of curiosity, why the dependency on MacRuby? The only thing I've seen in the digging I've done thus far is the CFUUID stuff, but that is easy enough to recreate in Ruby so I think I must be missing something...
Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @06:19AM (#3009919)
Good question, it’s because of reading and writing the project.pbxproj file through NSDictionary: https://github.com/alloy/cocoapods/blob/master/lib/cocoapods....
Re:Cocoapods: An Objective-C library package manager by jballanc on Sunday September 18, 2011 @03:35AM (#3009718)
I suspect that you'll see many more benefits of using MacRuby for the project going forward. For example, think about the sorts of things that Bundler (being written in Ruby) can do for Ruby gems that rvm (being mostly written in shell script) cannot.
Re:Cocoapods: An Objective-C library package manager by stevejohnson on Sunday September 18, 2011 @12:15AM (#3009468)
Without better documentation I can't really evaluate this. Who runs the central repository? How is it kept up to date?

I feel my skepticism is warranted for a week-old project.

Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @06:52AM (#3009959)
* Yes, good documentation is needed. Patches are very welcome :)

* The community. The idea is that once you have one patch accepted you get push access. This applies to both https://github.com/alloy/cocoapods and https://github.com/alloy/cocoapods-specs.

* “How is it kept up to date?” Can you explain what “it” is?

Re:Cocoapods: An Objective-C library package manager by stevejohnson on Sunday September 18, 2011 @08:47AM (#3010112)
"It" being the package repository.
Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @09:03AM (#3010130)
If you mean on the end-user's machine: $ pod repo update
Re:Cocoapods: An Objective-C library package manager by gfodor on Saturday September 17, 2011 @08:38PM (#3009171)
I wonder why the author didn't go for the obvious pun, Cocoabeans?

Oh, wait, I think I know why. :)

Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @06:52AM (#3009961)
Starts with “J” and ends with “ava” ;)
Re:Cocoapods: An Objective-C library package manager by zbowling on Saturday September 17, 2011 @10:01PM (#3009278)
WOW. you created my idea I posted a few days ago here! http://news.ycombinator.com/item?id=2997247
Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @06:57AM (#3009967)
ZOMG, indeed! You’re welcome! :D

On a more serious note, I had been trying not to create this for about a year now. The release of the boilerplate project made me decide it’s time to finally scratch that itch.

Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @06:58AM (#3009968)
Also, please please please start contributing specifications: https://github.com/alloy/cocoapods-specs :)
Re:Cocoapods: An Objective-C library package manager by samsoffes on Saturday September 17, 2011 @08:24PM (#3009154)
I am crazy excited about this. With the growing number of Objective-C libraries, this will make things so much better.
Re:Cocoapods: An Objective-C library package manager by steipete on Sunday September 18, 2011 @08:24AM (#3010084)
Anyone tried Zimt? https://github.com/zimt/zimt - looks similar to cocoapods, looks more mature.
Re:Cocoapods: An Objective-C library package manager by alloy on Sunday September 18, 2011 @08:40AM (#3010098)
Is there a specific feature that makes you say that? Or is it the age?
Re:Cocoapods: An Objective-C library package manager by signalsignal on Sunday September 18, 2011 @01:36AM (#3009582)
This is very interesting. I will be watching this project.
Re:Cocoapods: An Objective-C library package manager by tomwilson on Saturday September 17, 2011 @10:57PM (#3009349)
So glad someone has finally done this...
Re:Cocoapods: An Objective-C library package manager by aphexairlines on Saturday September 17, 2011 @08:50PM (#3009186)
There are already package managers that have been developed for years (ie: hard problems solved and bugs ironed out), can track dependencies across languages/runtimes, and have large cross-language communities.

Cocoapods isn't even cross-platform. It's only for iOS libraries, which means it only works on macs, which means it won't offer much beyond mac package managers. So use macports, or fink, or homebrew, or nyx.

Re:Cocoapods: An Objective-C library package manager by protomyth on Saturday September 17, 2011 @09:00PM (#3009199)
That seems to be the whole point is to provide a specialized manger For libraries on a Mac. Some people don't want a general solution to a specific problem.
Re:Cocoapods: An Objective-C library package manager by jballanc on Sunday September 18, 2011 @03:30AM (#3009713)
You're missing the point. This is not a tool for end-users, but rather for developers. iOS/OS X already have a means of distributing third-party libraries with projects (the "./Frameworks" directory), there just has not, until now, been a good way for developers to find and organize these libraries during development. The goal of this project is to give developers that way of sharing, discovering, and resolving dependencies of libraries, but at the end of the day everything will still get packaged up as a "*.app" that is distributed via the App Store.

Also, the reason to create a custom tool for this instead of repurposing one of the many existing package managers is that it allows for the tool to be specialized for the specific case of developing App Store apps. Sure, you can install a third-party library via macports, but how do you tell macports to compile the library and place the resulting frameworks into the right directory in your Xcode project?

Re:Cocoapods: An Objective-C library package manager by adamjernst on Saturday September 17, 2011 @09:15PM (#3009217)
iOS libraries need to be cross-compiled and statically linked. (Dynamic linking is not allowed in apps submitted to the store, IIRC.) I'm sure macports or whatever CAN be forced to do both of these, but it's easiest just to make something new, lean and efficient.