Search code examples
iosxcodemacosbuildmixed

Mac target being built with iphonesimulator gcc 4.2


In a Mixed 3.2.5 iOS/MacOS project, there is an existing iOS static library target, and I'm adding a MacOS static library. In the target build settings(all configurations) I

  • set the Base SDK to "Latest Mac OS X"
  • set Architectures to $(NATIVE_ARCH)
  • set Valid Architectures to i386 only
  • use my own PCH file
  • drag headers into Copy Headers, Mac target
  • drag source into Compile Sources, Mac target
  • add the Foundation.framework found at /System/Library/Frameworks/Foundation.framework, set it to the new Mac target

(/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/Foundation.framework is also present, but set to the iOS target static lib)

the target compiles but the product appears NOT in "Debug" but in "Debug-iphonesimulator" instead. I'm assuming this is linking to the iOS Foundation? Whatever it's doing I can't assume that's safe.

changing the order of how I add things seems to have no effect.

any suggestions?


Solution

  • I suggest upgrading to Xcode 4. I have projects that build Mac and iOS libraries and both work as expected.