canOpenURL when returns false prints out an unnecessary error message

603 Views Asked by At

I am using canOpenURL to open the app if installed in the device. And added the LSApplicationQueriesSchemes to whitelist the Schemes. But when canOpenURL returns false It always prints out an unnecessary error message in the console log. Below is the error message I receive.

-canOpenURL: failed for URL: "XXXX://XXXXXXXXXXXXX" - error: "The operation couldn’t be completed. (OSStatus error -10814.)

As I am using multiple schemes in my application, and my customer does not want these error message logs. Is there any way I can avoid printing these warning/log message to console.

This is the radar link(similar issue). Its closed without any solution.

Currently I am using iOS 11. Any help will be appreciated.

2

There are 2 best solutions below

0
On

Seems an intended syslog by Apple mentioned in their WWDC presentation

https://developer.apple.com/videos/play/wwdc2015/703/?time=576

0
On

This does not print to device log. As its printing only in the debug area, we can ignore it.