I have a project that I wanted to run the same suite of tests against both the Mac SDK and the iOS SDK. Doing "File -> New -> New Target" duplicated the OCDSpec files in the project.
What I ended up doing was duplicating my iOS target (I had created that first) and changing a couple build settings. I had to make the following changes:
General Udpates:
Add "Mac-Prefix.pch" to the project
Updates to "Build Settings"
Change the Base SDK to the latest Mac OS X
Change the build architecture to 64 bit.
Change the value for the "Prefix Header" to "OCDSpec/Mac-Prefix.h"
Updates to "Build Phases"
Update "Compile Sources" to include the macMain.m file.
Remove the unitTestMain.m from the "Compile Sources"
Remove UIKit from "Link Binary With Libraries"
Update the "Run Script" to $TARGET_BUILD_DIR/$EXECUTABLE_PATH
I have a project that I wanted to run the same suite of tests against both the Mac SDK and the iOS SDK. Doing "File -> New -> New Target" duplicated the OCDSpec files in the project.
What I ended up doing was duplicating my iOS target (I had created that first) and changing a couple build settings. I had to make the following changes:
General Udpates:
Updates to "Build Settings"
Updates to "Build Phases"