iosjailbreakopenurlcydia

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


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>

Solution

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