I created a project with two goals: one for the iPhone and one for the Mac OsX. They build and work well when I create them for the first time (first I created the OsX target, and then the iPhone target). However, if I build the iPhone target and return to the OsX target, the OsX target now thinks that it uses the iPhone SDK and not the native Mac OsX SDK, and no longer compiles (cannot find the OSX SDK header files).
My project build and goal settings are configured correctly, and the ".pbxproj" file does not change during the switch process. But I found a problem in the file ".pbxuser", in particular, in the parameter "activeSDKPreference =".
Basically, when I switch to iPhone, this parameter changes from macosx10.6 to iphonesimulator4.0, but when I switch back to the OsX target, it stays on iphonesimulator4.0. The only way to get it working again is to close the project, manually change this setting to macosx10.6 and reopen the project. That would solve it until I switch to the iPhone again.
Is this a bug in Xcode? who has a solution or job?
iphone xcode project macos
Auday
source share