1

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>
Martin Koles
  • 5,177
  • 8
  • 39
  • 59
  • I have checked the [OSStatus error](https://www.osstatus.com/search/results?platform=all&framework=all&search=-10814) that you got and I can see that it means that the application is not in the launch services. I'm not sure but I think that it means that cydia is not present, maybe you can check with a cydia jailbreak device. – tx2 Aug 29 '17 at 12:58
  • Ok. I would expect that when cydia is not present, the function will simply return false and not an error. I am running this on a Simulator only for now and I wonder if this can cause the error? I am waiting for a jailbroken device and will test it there for sure. Thanks. – Martin Koles Aug 29 '17 at 13:47
  • Just tested this on a jailbroken device without any error. It works as expected. I guess it's the Simulator issue on the end. – Martin Koles Aug 31 '17 at 11:44
  • Good to know. I'll upvote since I may need this info too. – tx2 Aug 31 '17 at 13:42

1 Answers1

1

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

Martin Koles
  • 5,177
  • 8
  • 39
  • 59