unrecognized option: --toolchain

After upgrading from xcode 6.4 to xcode 7.2.1 I am no longer able to run any swift projects on the actual device. The projects run fine on the simulator but fail to compile when targetting the real device.


I have seen several other people running into this issue but could not find any answers online.


Here are the two errors i get,


Copying libswiftCore.dylib from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos to /Users/joe/Library/Developer/Xcode/DerivedData/testing-askymvgjvocihabqoncqwtgmjetd/Build/Products/Debug-iphoneos/testing.app/Frameworks

/usr/bin/xcrun '--toolchain' '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain' 'bitcode_strip' '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib' '-r' '-o' '/Users/joe/Library/Developer/Xcode/DerivedData/testing-askymvgjvocihabqoncqwtgmjetd/Build/Products/Debug-iphoneos/testing.app/Frameworks/libswiftCore.dylib'


xcrun: error: unrecognized option: --toolchain



usage:


xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk <sdkroot>] [-log] [-run] <utility>

xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk <sdkroot>] -find <utility>


<tool>


*** error: Couldn't copy and strip bitcode /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/joe/Library/Developer/Xcode/DerivedData/testing-askymvgjvocihabqoncqwtgmjetd/Build/Products/Debug-iphoneos/testing.app/Frameworks/libswiftCore.dylib: bitcode_strip failed with exit code 64



This happens even with a fresh new swift project without any pods etc.


My device is running IOS 9.1



Could someone please help me figure what is going on here?

unrecognized option: --toolchain
 
 
Q