-canOpenURL error when checking cydia:// scheme for jailbreak detection

2.7k views Asked by At

As part of the jailbreak detection I am checking if cydia app can be reached through opening its URL scheme. But I am getting the following error despite I've registered the scheme in info.plist. Any idea what's causing this error?

-canOpenURL: failed for URL: "cydia://package/com.example.package" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>cydia</string>
</array>
1

There are 1 answers

0
Martin Koles On BEST ANSWER

Just tested this on a jailbroken device without any error. It works as expected. I guess it's the Simulator issue on the end.