I read other questions about the same, but everyone just says "Jailbreak" which will never be approved by Apple "," This is not possible "and" private API, GraphicsServices.framework ".
Let me clarify something, I do not do this for a jailbreak phone, I do this because the lock button on my phone is broken and I just do not want to wait 1 minute for the lock screen. So I decided that I might have an application called lockScreen at the beginning of AppDelegate.h . This does not happen in the AppStore, it is just for me.
I saw people who can use GSEventLockDevice(); when importing GSEvent.h from GraphicsServices.framework , but when I run it (both on the device and on the simulator), I get this and it will not build:
Undefined symbols for architecture armv7s: "_GSEventLockDevice", referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not quite sure what that means. If I delete the line GSEventLockDevice(); but still import GSEvent.h , everything will work fine. Should my device be jailbroken for work or something else?
source share