3D Touch shortcuts in the Simulator
Objective-C Makefile
Switch branches/tags
Nothing to show
Clone or download
AriX Merge pull request #3 from danieldabate/patch-1
Added quotes in case the XCode path has spaces
Latest commit bcaaf0f Sep 30, 2015
Permalink
Failed to load latest commit information.
.gitignore Initial commit Sep 17, 2015
LICENSE Initial commit Sep 17, 2015
Makefile Added quotes in case the XCode path has spaces Sep 29, 2015
README.md Update usage Sep 18, 2015
SBShortcutMenuListener.m Initial commit Sep 17, 2015

README.md

SBShortcutMenuSimulator

SBShortcutMenuSimulator is a tweak for the iPhone Simulator that allows you to simulate the new UIApplicationShortcutItem API for iPhone with 3D Touch enabled.

Requirements

  • Xcode 7 GM or later, set as your default version of Xcode

Build

git clone https://github.com/DeskConnect/SBShortcutMenuSimulator.git
cd SBShortcutMenuSimulator
make

Note: If you installed SBShortcutMenuSimulator using the old method, go here and follow the uninstallation directions.

Usage

First, start SpringBoard with SBShortcutMenuSimulator enabled (run this from the cloned directory):

xcrun simctl spawn booted launchctl debug system/com.apple.SpringBoard --environment DYLD_INSERT_LIBRARIES=$PWD/SBShortcutMenuSimulator.dylib
xcrun simctl spawn booted launchctl stop com.apple.SpringBoard

Now, to show an app's quick action menu, send the app's bundle identifier over TCP to port 8000. For example, running this command will show the shortcut menu for Calendar:

echo 'com.apple.mobilecal' | nc 127.0.0.1 8000

License

SBShortcutMenuSimulator is available under the MIT license. See the LICENSE file for more info.