libswiftCore.dylib: code object is not signed at all

In XCode 8 beta, when I try to run on a real iPhone, I get the following error about libswiftCore.dylib not being signed.


Probing signature of /Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib

/usr/bin/codesign '-r-' '--display' '/Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib'

/Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib: code object is not signed at all

Codesigning /Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib

/usr/bin/codesign '--force' '--sign' '034AE1DDD50995992901A7030454BE7D048BB21B' '--verbose' '/Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib'

CSSM_SignData returned: 8001094A

/Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib: errSecInternalComponent

error: Task failed with exit 1 signal 0 {

/usr/bin/codesign '--force' '--sign' '034AE1DDD50995992901A7030454BE7D048BB21B' '--verbose' '/Users/bandrews/Library/Developer/Xcode/DerivedData/TrafficCenter-cfvwcmcbiqrplpcrduidiljyjhtg/Build/Products/Debug-iphoneos/TrafficCenter.app/Frameworks/libswiftCore.dylib'


I was able to run on my iphone previously, and all of a sudden it stopped working. I tried re-installing XCode 8 beta, but it didn't help.

Has anyone else seen this problem and know how to solve it?

Same here, don't know whats the problem. Already deleted DerivedData for my working user. Did not help.


But this worked for me (workaround): Create a new user, log in with your apple id. Create and launch.

Are you using the Xcode provided switft toolchain or one from swift.org? It looks like the swift runtime in the toolchain is not codesigned. I remember this was an issue with some of the downloadable toolchains a few weeks ago.

Strange: after creating a new user, starting Xcode and running my app everything works with my main user...

libswiftCore.dylib: code object is not signed at all
 
 
Q