Task Failed Exit 1 signal 0 (Stdlib Tool Error)

I have been using Xcode and swift for a long time and testing on my iPad Pro but now it will not let me executed on it. It executes in the simulter but no longer on an actual device with Xcode 9.4.1. The bottom of the log is below


Probing signature of /Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib

/usr/bin/codesign '-r-' '--display' '/Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib'

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

Codesigning /Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib

/usr/bin/codesign '--force' '--sign' '9D1BB24BF84815BB02D6CE078CBA29515295FA41' '--verbose' '/Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib'

/Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib: errSecInternalComponent

error: Task failed with exit 1 signal 0 {

/usr/bin/codesign '--force' '--sign' '9D1BB24BF84815BB02D6CE078CBA29515295FA41' '--verbose' '/Users/jack_reigh/Library/Developer/Xcode/DerivedData/FoodTracker-crswctreoaiwbvaadnltjzeyykfb/Build/Products/Debug-iphoneos/FoodTracker.app/Frameworks/libswiftCore.dylib'

}

Did you try to delete derived data (Clean Build Folder) ?


May have a look at this old thread : h ttps://forums.developer.apple.com/thread/61380

Clean and rebuild does no good.

My certificates show lines with missing private key.

I have searched and found on StackOverflow some 3 or 4 more suggestions. All of them I tried with no success.

Xcode was running fine for the past year or so, until yesterday. Then it keeps popping out this error. At first deleting "DerivedData" helped. I even deleted simulator data. But over the process of writing and testing codes, these methods stopped working.


Other suggestions include something about keychain, putting certificates. Again, it seemed to work at first, but not anymore.


The only thing that still works is - restart computer. After 1 build, Xcode will pop this super-annoying error, and I have to spend the next 3 minutes restarting computer. Not 2 builds. So this is the "new" work-flow. Write codes -> build/run/test -> restart -> debug -> build/run/test -> restart.


Apple is royally messed up with this system. Xcode needs a major overhaul.

Task Failed Exit 1 signal 0 (Stdlib Tool Error)
 
 
Q