apache/incubator-cordova-ios — pull request #38 by isuda (2012-07-17 20:22:09+00:00)
Title: Fixes the cordova debug and emulate commands

In my version of xcode (4.3.3), I needed to add the following to xcodebuild options to debug:

-arch i386
forces the i386 architecture, it would not build cordovalib without it.

-scheme $PROJECT_NAME
tells xcodebuild to build the proper project (not cordovalib)

CONFIGURATION_BUILD_DIR=$PROJECT_PATH/build
tells xcodebuild to not use the default build location (on my computer with xcode 4.3.3 it was somewhere in ~/Library/Developer/Xcode/DerivedData/...), and instead use $PROJECT_PATH/build.