Make the default target for `platform :osx` the current system's version #579

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@croach
Contributor
croach commented Oct 6, 2012

Installing AFNetworking is currently not working for platform :osx when target isn't defined (issue #578). This is due to the default target being hard coded to a version less than the minimum one that AFNetworking supports. This change makes the default target dynamic; If target is not specified in the podfile, the code will query the system for the current OS X version and use that as its target version, but will fallback to using 10.6 if it fails to get the current system's version. This should be a better default target since it will allow packages that take advantage of the most recent system's benefits to be installed in most cases without specifying the target in the podfile.

@croach croach Make the default target for `platform :osx` the current system's version
This change makes the default target when the platform is `:osx` the
system's version of OS X if it can be found by querying the
system. Otherwise the default '10.6' is used. Setting the target in
the podfile still overrides the default target.
dec9d1c
@fabiopelosin
Member

I'm closing this one because, what we plan to do is to inspect the integrated target (if integrating a user project during an installation) and take the platform from that target if not specified in the Podfile. I think that this would be the best solution.

@croach
Contributor
croach commented Dec 4, 2012

Yeah, that sounds like a better solution to me.

Christopher

On Dec 4, 2012, at 8:08 AM, Fabio Pelosin notifications@github.com wrote:

I'm closing this one because, what we plan to do is to inspect the integrated target (if integrating a user project during an installation) and take the platform from that target if not specified in the Podfile. I think that this would be the best solution.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment