Skip to content

Platform filter for `pod search` #625

Closed
chakrit opened this Issue Nov 1, 2012 · 5 comments

2 participants

@chakrit
chakrit commented Nov 1, 2012

Right now the majority of pods on the specs repository is ios-only.

This makes it hard to find any pods when building an OS X project.

Suggestion: pod search should either

  • Respect the platform :osx in the nearest Podfile or...
  • Reads the proper project type from the nearest xcodeproj file or...
  • Just provide an argument to specify the platform to use.
@alloy
CocoaPods member
alloy commented Nov 1, 2012

Just provide an argument to specify the platform to use.

I think that’s the best way to do it, because a Podfile might contain multiple platforms, there might be multiple Xcode projects, etc.

Will you want to work on this?

(Btw, in the meantime you can use the search on http://cocoapods.org to filter by platform.)

@chakrit
chakrit commented Nov 1, 2012

I'll see what I can do, but no promises.

If anyone can pick up, please go ahead :)

@chakrit
chakrit commented Nov 1, 2012

@alloy what do you think of --osx or --ios flag?

instead of a --platform osx since I don't think Apple's gonna give us another platform anytime soon.

@alloy
CocoaPods member
alloy commented Nov 2, 2012

Yup, sounds like a good idea to me.

@alloy
CocoaPods member
alloy commented Apr 4, 2013

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.