diff --git a/ios/engine/KMEI/KeymanEngine.xcodeproj/project.pbxproj b/ios/engine/KMEI/KeymanEngine.xcodeproj/project.pbxproj index 82b72fd0d5..0f17c275be 100644 --- a/ios/engine/KMEI/KeymanEngine.xcodeproj/project.pbxproj +++ b/ios/engine/KMEI/KeymanEngine.xcodeproj/project.pbxproj @@ -824,7 +824,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if which swiftlint >/dev/null; then\n swiftlint --config ../../.swiftlint.yml\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi"; + shellScript = "if which swiftlint >/dev/null; then\n swiftlint --config ../../.swiftlint.yml\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n"; }; C0A5FF391F6684DE00BE740C /* ShellScript */ = { isa = PBXShellScriptBuildPhase; diff --git a/ios/engine/KMEI/KeymanEngine/Classes/Manager.swift b/ios/engine/KMEI/KeymanEngine/Classes/Manager.swift index 468c9d0cb5..b51e663833 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/Manager.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/Manager.swift @@ -181,9 +181,12 @@ public class Manager: NSObject, HTTPDownloadDelegate, UIGestureRecognizerDelegat keymanWeb.view.addGestureRecognizer(hold) reachability = Reachability(hostName: keymanHostName) - NotificationCenter.default.addObserver(self, selector: #selector(self.reachabilityChanged), + + if(!Util.isSystemKeyboard) { + NotificationCenter.default.addObserver(self, selector: #selector(self.reachabilityChanged), name: .reachabilityChanged, object: reachability) - reachability.startNotifier() + reachability.startNotifier() + } /* HTTPDownloader only uses this for its delegate methods. So long as we don't * set the queue running, this should be perfectly fine. diff --git a/ios/history.md b/ios/history.md index ea830bf74b..3dc5bb1fd4 100644 --- a/ios/history.md +++ b/ios/history.md @@ -5,6 +5,7 @@ * Bookmark add button is enabled only when title/url fields have text (#1073) * Removed deprecated code to to support keyman:// scheme for ad-hoc distribution (#1160) * Updated the default keyboard to SIL EuroLatin (#1101) +* Fixed bug behind some crashes of system keyboard (#1166) ## 2018-08-02 10.0.208 stable * Fixed OSK layout problems (and possible crash) on iOS 11 on certain hardware (#1089, #1159) diff --git a/ios/keymanios.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/keymanios.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000..949b678982 --- /dev/null +++ b/ios/keymanios.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + BuildSystemType + Original + +