I have just updated my Xcode to version 7.2. Now I try to build a framework from command line using xcodebuild but have this error
.... /Applications/Xcode.a
I reported the same issue to Apple, it actually happens on any type of project when building from the command line using a "scheme" and specifying -sdk as simulator.
I looks like the ARCH and PLATFORM_NAME variables are incorrectly set even though we're specifying -sdk iphonesimulator. My current work around is to specify PLATFORM_NAME=iphonesimulator on top of the -sdk iphonesimulator flag on my xcodebuild command line.
Waiting to hear more from my bug report to Apple.