Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isJailBroken() -- A problem with ios? #41

Closed
Don-oneself opened this issue Mar 22, 2019 · 9 comments
Closed

isJailBroken() -- A problem with ios? #41

Don-oneself opened this issue Mar 22, 2019 · 9 comments

Comments

@Don-oneself
Copy link

Don-oneself commented Mar 22, 2019

jail-monkey v:2.1.1
ios :12.1.4 testfight
method:
JailMonkey.isJailBroken() = true
is this right ?

@PavanKumar-sa
Copy link

React Native 0.60.3 JailMonkey.isJailBroken() returns null and not working.

@vaishnavtn
Copy link

Same issue here.
React Native 0.61.5 JailMonkey.isJailBroken() returns null and not working.

@levibuzolic
Copy link
Collaborator

levibuzolic commented Jun 24, 2021

This doesn't sound right, could you please run the example app and post what results you get. Also, it's important to know what version of JailMonkey you're running.

isJailBroken returning null is likely a sign that the native code may not have been installed/linked correctly.

Simulator Screen Shot - iPhone 8 - 2021-06-24 at 10 38 45

@vaishnavtn
Copy link

React-Native - 0.61.5
jail-monkey@2.3.0

Getting error in JailMonkey.m on line no 265 as Property 'isiOSOnMac' not found on object of type 'NSProcessInfo'

if (@available(iOS 14.0, *)) {
isiOSAppOnMac = [NSProcessInfo processInfo].isiOSAppOnMac; // line no 265
}

@levibuzolic
Copy link
Collaborator

@vaishnavtn would you be able to try with the updated native code at #98 and see if that resolves the issue?

@vaishnavtn
Copy link

vaishnavtn commented Jun 24, 2021

Yes, it's working now with that change. But it's returning false if I run app on simulator. Also, are you planning to merge this PR anytime soon?

@levibuzolic
Copy link
Collaborator

@vaishnavtn false is expected on the simulator.

I can merge and release this later today.

@levibuzolic
Copy link
Collaborator

@vaishnavtn I've made a new release, let me know how it goes.

@vaishnavtn
Copy link

It's working. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants