blockchain-certificates / BlockcertsFramework-iOS

An iOS wallet for viewing, validating, and sharing certs
MIT License
20 stars 15 forks source link

Unable to delete certificates #21

Closed bedinotti closed 8 years ago

bedinotti commented 8 years ago

This appears to have been introduced when the containing folder was changed from the app's sandbox folder into the App Group's folder. Whenever you try to delete a certificate, it fails with:

Error Domain=NSCocoaErrorDomain Code=513 "(#file) couldn’t be removed because you don’t have permission to access it."
bedinotti commented 8 years ago

Changed from using FileManager to the more modern Data.write(to: URL), and that seems to have solved it.