Preface: I did look at similar questions and none of the answers seemed to fix my problem.
I am trying to build my xcode (version 5.1.1) project using:
You can override your default variables: Try to use this:
xcodebuild clean build -sdk iphonesimulator7.0 -arch "i386" ONLY_ACTIVE_ARCH=NO VALID_ARCHS="i386 x86_64"
If you building for Simulator - always build for i386/x86_64.
Go to your project settings (not targets). Then open Build Settings and add a value to Valid architectures: i386