diff --git a/ios/engine/KMEI/KeymanEngine/Classes/Resource Management/ResourceFileManager.swift b/ios/engine/KMEI/KeymanEngine/Classes/Resource Management/ResourceFileManager.swift index 5192c50c21..100c036c8e 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/Resource Management/ResourceFileManager.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/Resource Management/ResourceFileManager.swift @@ -32,7 +32,12 @@ public class ResourceFileManager { // Throws an error if the destination file already exists, and there's no // built-in override parameter. Hence, the previous if-block. - try fileManager.copyItem(at: source, to: destination) + if source.startAccessingSecurityScopedResource() { + defer { source.stopAccessingSecurityScopedResource() } + try fileManager.copyItem(at: source, to: destination) + } else { + try fileManager.copyItem(at: source, to: destination) + } } /** diff --git a/ios/history.md b/ios/history.md index 9ce8fa6dce..28b646f609 100644 --- a/ios/history.md +++ b/ios/history.md @@ -1,6 +1,9 @@ # Keyman for iPhone and iPad Version History +## 2021-02-25 13.0.117 stable +* Fixes an issue that sometimes prevented keyboard and dictionary installation (#4524) + ## 2020-07-16 13.0.109 stable * Improve performance when typing long documents with predictive text (#3302)