In XCode (6.3), when setting Product->Destination to Simulator: iPhone 4S or iPhone 5, I get this linker error. Note the "file was built for x86_64 which is not the architecture being linked".
I don't have this problem when using the iPhone 5s or iPhone 6s simulators and I'm fairly sure that I didn't always have this problem with those simulator targets.
Ld /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Intermediates/ios-galaxyzoo.build/Debug-iphonesimulator/ios-galaxyzooTests.build/Objects-normal/i386/ios-galaxyzooTests normal i386
cd /Users/murrayc/Documents/xcode_projects/ios-galaxyzoo
export IPHONEOS_DEPLOYMENT_TARGET=8.3
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Products/Debug-iphonesimulator -F/Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/Developer/Library/Frameworks -filelist /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Intermediates/ios-galaxyzoo.build/Debug-iphonesimulator/ios-galaxyzooTests.build/Objects-normal/i386/ios-galaxyzooTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Products/Debug-iphonesimulator/ios-galaxyzoo.app/ios-galaxyzoo -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.3 -Xlinker -dependency_info -Xlinker /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Intermediates/ios-galaxyzoo.build/Debug-iphonesimulator/ios-galaxyzooTests.build/Objects-normal/i386/ios-galaxyzooTests_dependency_info.dat -o /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Intermediates/ios-galaxyzoo.build/Debug-iphonesimulator/ios-galaxyzooTests.build/Objects-normal/i386/ios-galaxyzooTests
ld: warning: ignoring file /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Products/Debug-iphonesimulator/ios-galaxyzoo.app/ios-galaxyzoo, file was built for x86_64 which is not the architecture being linked (i386): /Users/murrayc/Library/Developer/Xcode/DerivedData/ios-galaxyzoo-amipkzucemghvagnemtgshdtgysk/Build/Products/Debug-iphonesimulator/ios-galaxyzoo.app/ios-galaxyzoo
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_DecisionTree", referenced from:
objc-class-ref in TestDecisionTree.o
"_OBJC_CLASS_$_ZooniverseHttpUtils", referenced from:
objc-class-ref in TestZooniverseHttpUtils.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)