Xcode 6.4 unable to build any projects

Codesigning libswiftCore.dylib at /Users/steve/Library/Developer/Xcode/DerivedData/Passenger_Party-birhcpgkoghbjldrxppcdrafwukb/Build/Products/Debug-iphoneos/Passenger Party.app/Frameworks
  /usr/bin/codesign '--force' '--sign' '810DACD3A3BAC1A4B6971AFA9407EC80E858A7E5' '--verbose' '/Users/steve/Library/Developer/Xcode/DerivedData/Passenger_Party-birhcpgkoghbjldrxppcdrafwukb/Build/Products/Debug-iphoneos/Passenger Party.app/Frameworks/libswiftCore.dylib'
/Users/steve/Library/Developer/Xcode/DerivedData/Passenger_Party-birhcpgkoghbjldrxppcdrafwukb/Build/Products/Debug-iphoneos/Passenger Party.app/Frameworks/libswiftCore.dylib: replacing existing signature
/Users/steve/Library/Developer/Xcode/DerivedData/Passenger_Party-birhcpgkoghbjldrxppcdrafwukb/Build/Products/Debug-iphoneos/Passenger Party.app/Frameworks/libswiftCore.dylib: the codesign_allocate helper tool cannot be found or used
*** error: Couldn't codesign /Users/steve/Library/Developer/Xcode/DerivedData/Passenger_Party-birhcpgkoghbjldrxppcdrafwukb/Build/Products/Debug-iphoneos/Passenger Party.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1



I get the above error for all of my Swift projects, even if I create a brand new one. I have tried revoking and renewing my certificates and profiles as well as re-installing xcode 6.4. I have confirmed the codesign_allocator file is in /usr/bin and that it's part of my $path. The weirdest thing is that my other project written in objective-c has no issues building to my phone successfully.


Has anybody had this problem? Is there any more information I can add to make this more clear? I've spent two evenings trying to fix this and have had no success.

I have exactly the same problem and there is no valid solution if you want to stick to xcodebuild. But shenzhen ipa does sign the swift code! Hope apple will give a valid answer to this because I hate thirdy party scripts

Unfortunately I have a similar problem:


I renewed my certificate then the provisioning profile. I killed Xcode and cleared DerrivedData

But whenever I try to run the App on my device it will give me those two errors:

*** error: Couldn't codesign /Users/ferdinandhof/Library/Developer/Xcode/DerivedData/Joyride-dxeruxuzesdlusbpzcpxiratuafp/Build/Products/Debug-iphoneos/Joyride.app/Frameworks/libswiftFoundation.dylib: codesign failed with exit code 1
*** error: Couldn't codesign /Users/ferdinandhof/Library/Developer/Xcode/DerivedData/Joyride-dxeruxuzesdlusbpzcpxiratuafp/Build/Products/Debug-iphoneos/Joyride.app/Frameworks/libswiftCoreGraphics.dylib: codesign failed with exit code 1
Xcode 6.4 unable to build any projects
 
 
Q