I'm having some issues when I try to build a framework using xcodebuild. My xcode version is 6.1.
This line works well:
xcodebuild -target Knot3DLib -configuration Release -sdk iphoneos
However it doesn't work:
xcodebuild -target Knot3DLib -configuration Release -sdk iphonesimulator
It says:
No architectures to compile for (ARCHS=i386 x86_64, VALID_ARCHS=arm64 armv7 armv7s).
I've no defined neither i386 nor x86_64 as archs in my project, so why does xcodebuild try to build i386? Here's my architecture build settings:

I can run the project from Xcode in both simulator and devices.
I've tried other similar questions but none of them worked for me.