Skip to content

Library that uses private APIs to capture global keystroke events for debugging purposes in the simulator.

Notifications You must be signed in to change notification settings

inamiy/JJPrivateKeyEvents

Repository files navigation

JJPrivateKeyEvents

** THIS LIBRARY USES UNDOCUMENTED METHODS THAT WILL GET YOUR APP REJECTED BY APPLE **

Take special care to only include this library in your debug target. This library allows you to capture global keystroke events for debugging purposes in the iOS simulator. Inspired by a talk given by Flipboard.

Installation

  1. Add the JJPrivateKeyEvents project to your project.
  2. Navigate to your project settings, select your target, then select the 'Build Phases' tab
  3. Add JJPrivateKeyEvents in the target dependency section
  4. Add JJPrivateKeyEvents.a to the 'Link binary with libraries' section
  5. Add the GraphicsServices private framework to your project in the 'Link binary with libraries' section

The GraphicsServices framework is a private framework and can be found on your filesystem in a path that looks something like:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/PrivateFrameworks If you have any issues, please raise an issue on this repository. Again, make sure this library and the GraphicsServices framework do not get linked to your production application.

Associated blog post at: http://engineering.hoteltonight.com/

About

Library that uses private APIs to capture global keystroke events for debugging purposes in the simulator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published