praba praba - 1 month ago 52
iOS Question

add GraphicsServices private framework into IOS

actually I need to lock my iPhone programmatically, I have searched in the internet, also got some ideas, that is, using

GraphicsServices.framework
and
GSEventLockDevices()
method.. here is the thing: how can I add a private framework to my project? I knew it's jailbreaking, but no problem.

Could anyone help me to add a private framework to Xcode and lock the device programmatically?

Answer

If you missed to import certain framework means, you may get like this kind of error.. When I met like this kind of problem, i have followed this way..

1) Select the project in the project navigation window which will show project summary on right

2) Select 4th tab build phases

3) Select Link binary with library option

4) Add framework for which you are getting

5) Move the framework from main folder to the frameworks folder

6) Build it again and errors are gone.

Hope this helps :)