views:

6

answers:

0

I am using Xcode Version 3.2.3 64 bit on MacOS 10.4.6 (Snow Leopard) with the iPhone SDK 4.0

I want to create a static library which uses Cocoa/Objective C++. This static library needs to be compiled for both the iPhoneOS and for MacOS as its used by both iPhone and MacOS GUI front ends.

I have tried to create two targets in the same project each building for their respective platform. However as soon as I try and build the iPhoneOS target Xcode will only list myApp - iPhoneSimulator or myApp - iPhoneDevice as platform options under the Active Executable list in the main top left drop down menu.

The only way I can get the active target to build for MacOS again is to rebuild the whole project from scratch. Obviously I have missed something here, but I'm not sure how to find out. Nothing I have read in the Xcode docs even hints that something like this might be a problem.