paytonrules / OCDSpec

An awesome TDD framework for Objective-C
http://paytonrules.com/OCDSpec/
MIT License
19 stars 4 forks source link

Adding Both Targets Duplicates Files #18

Open ericmeyer opened 12 years ago

ericmeyer commented 12 years ago

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:

  1. Add "Mac-Prefix.pch" to the project

Updates to "Build Settings"

  1. Change the Base SDK to the latest Mac OS X
  2. Change the build architecture to 64 bit.
  3. Change the value for the "Prefix Header" to "OCDSpec/Mac-Prefix.h"

Updates to "Build Phases"

  1. Update "Compile Sources" to include the macMain.m file.
  2. Remove the unitTestMain.m from the "Compile Sources"
  3. Remove UIKit from "Link Binary With Libraries"
  4. Update the "Run Script" to $TARGET_BUILD_DIR/$EXECUTABLE_PATH