This question is related, but does not resolve the specific issue I am having.
I am using Xcode 4.6.3 under OS X 10.7.5.
I simply created the default project for a single view iOS app and made no changes to the project settings. The project, of course, builds in Xcode for the iOS Simulator. However, when I try to use xcodebuild from the command line, xcodebuild fails.
The project name is just: temp
I tried:
xcodebuild -scheme temp -sdk iphonesimulator6.1
and that produced the results:
Build settings from command line:
SDKROOT = iphonesimulator6.1
=== BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Based on the other SO question, I tried:
xcodebuild ARCHS="armv7 armv7s" ONLY_ACTIVE_ARCH=NO -scheme temp -sdk iphonesimulator6.1
and got similar results:
Build settings from command line:
ARCHS = armv7 armv7s
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator6.1
=== BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ARCHS=armv7 armv7s, VALID_ARCHS=i386).
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
What xcodebuild command do I need to execute to be able to build with xcodebuild?
Thank you.