I am writing a reusable code library designed for both OS X and iOS. I created an Xcode project with two goals. One of the goals is the foundation for OS X. Another is the static library for iOS.
I found that the OS X target builds are trying to use iOS headers. I know this because TARGET_OS_IPHONE is defined, causing the assembly to try to find UIKit.h, etc. This, of course, causes failures for the target framework environment, since the target OS X infrastructure environment is not related to the iOS frameworks.
I checked the build settings for the target OS X environment for goofiness, but found nothing. The base SDK is installed as "Mac OS X 10.6." Note that when I created the Xcode project, I used the Cocoa Framework template and then added the target of the iOS static library.
What else could cause the OS X target platform to use the wrong SDK?
Thanks, -KIRBY
ios xcode macos
Kirby T
source share