Ionic app crashes on iOS 12.2 because of '_alwaysRunsAtForegroundPriority'

后端 未结 6 689
情话喂你
情话喂你 2021-02-06 10:36

On iOS 12.2 my app is terminated just after startup, with this message in xcode:

Terminating app due to uncaught exception \'NSUnknownKeyException\', rea

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 10:56

    To find which of the plugins you use is causing the error run:

    cd %HOME%/src/myProject    
    grep -r "_alwaysRunsAtForegroundPriority" node_modules
    

    Once you find it, look for an upgrade that solves the problem or replace it with an alternate plugin.

    In our case, the plugin was WKWebView. A quick search on google found they had an error and fixed it. We upgraded the plugin and it worked smoothly.

提交回复
热议问题