I'm new to iOS development and today I tried to check my app on my iPhone and tried to build it for the device. So when I clicked on build, it asked to type my password to let codesign to access keychain. But after few attempts, I accidentally clicked on deny button. Then after again I tried to build my app for the device and now it says,
Swift sodlib tool error, task failed with exit 1 signal 0
And when I check that error it says,
unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'A6646CD79C82476C1C35598A10134D3171EE09CD' '--verbose' '/Users/samitha/Library/Developer/Xcode/DerivedData/TestFoodTracker-gdcqosdrvtooqocosgttmwyzvgtg/Build/Products/Debug-iphoneos/TestFoodTracker.app/Frameworks/libswiftContacts.dylib'
What I Did
I tried to let codesign to access "keychain Access" and checked every key under login, but in Access Control section of each key, "Allow all applications to access this item" have been selected.
I couldn't find any more ways to correct that mistake and let my app to be built for my device. Please if there anyone know how to correct this, just help me. Thanks.
question from:
https://stackoverflow.com/questions/47770693/xcode-wont-let-to-build-for-device-after-denying-codesign-to-access-keychain 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…