IPhone + OSX goals in one project

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?

+6
iphone xcode project macos
source share
3 answers

The same question is asked and answered at http://lists.apple.com/archives/xcode-users/2010/Oct/msg00132.html

It says: "you can select the" Browse "option ([in] Xcode Project [window], on the toolbar). You should see a more complete list of active SDKs, select the explicit OSX SDK."

+1
source share

this is a bug in xcode, so you are using the latest version of xcode

0
source share

when you build it, it sets your whole goal. You can solve this problem by clearing the whole goal, than build it. you will find this in xcode build manu -> clear the entire target. than to build it. he will work.

0
source share

All Articles