RestKit/RestKit — Issue #402: Rework OS X / iOS Build Process
Author: blakewatters
Created: 2011-10-13 02:09:47+00:00
State: open
Labels: Core

We have been seeing extra platforms in the Scheme menu for OS X added to all iOS projects and vice-versa ever since we introduced the OS X support awhile back. This is annoying and causes various build oddities because both platforms get the same treatment. The addition of the arvmv6 and armv7 changes for iOS 5 have made this worse.

To remedy these issues:

1. Use conditional build logic to select the armv6 and armv7 targets when iOS 5 is the active SDK. All other SDK's should use the standard architectures for the platform.
1. Change the supported platforms for the RestKit aggregate target to be iphoneos and iphonesimulator. This will prevent the addition of the OS X specific architectures.
1. Create a new RestKit OS X aggregate target with the SUPPORTED_PLATFORMS set to macosx. This will enable the OS X architectures when you build against it.
1. Change the RestKit project to select the base SDK based on the architecture. Use Latest iOS for armv6 and armv7 and Current Mac OS for Intel.