Swift Sdtlib tool error: Task failed with exit code 1
I use macOS High Sierra, Xcode 9.3: This worked for me.
- Go to
/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/
- Moved all the files to Trash, empty the trash
- Opened Xcode, Clean and Build.
Restarting xcode or macbook, dragging and dropping certificate in the keychain did not work for me.
Ok so I solved this, don't know if it's the right way or not.
Moved my iOS developer certificate from local to system using Key Chain.
Steps:
- Close Xcode.
- Open Key Chain.
- Find the iOS Developer cert in Local.
- Drag and drop the cert from Local to the System tab.
- Enter admin password when prompted.
- Start Xcode and build project for your device.