3D Touch shortcuts in the Simulator

Overview

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.

Comments
  • "No devices are booted" when launching SpringBoard

    Bas-iMac:SBShortcutMenuSimulator bas$ xcrun simctl spawn booted launchctl debug system/com.apple.SpringBoard --environment DYLD_INSERT_LIBRARIES=$PWD/SBShortcutMenuSimulator.dylib
    No devices are booted.
    Bas-iMac:SBShortcutMenuSimulator bas$ xcrun simctl spawn booted launchctl stop com.apple.SpringBoard
    No devices are booted.
    Bas-iMac:SBShortcutMenuSimulator bas$
    
    opened by BasThomas 12
  • ForceTouchCapability return value

    ForceTouchCapability return value

    if I call [[self.window.rootViewController traitCollection] forceTouchCapability] in AppDelegate, it returns UIForceTouchCapabilityUnavailable on iPhone 6s simulator. Someone with a real device, can tell me if it's normal and on a real iPhone 6s it returns UIForceTouchCapabilityAvailable instead?

    Thanks

    opened by loregr 2
  • Not working ?

    Not working ?

    Hi there,

    This is a great idea, thanks for sharing it!! Unfortunately, it doesn't seem to be working for me... I'm using Xcode Version 7.0.1 (7A1001) with Simulator Version 9.0 (SimulatorApp-620 CoreSimulator-179).

    I've cloned the repo, built it with make and then run the debug command with both Xcode and the Simulator open. Result was: Service configured for next launch.

    Then I tried sending the signal with my own bundle ID, but also with the Calendar one shown in the example, and never got any output on the Terminal, nor anything that happened in the simulator.

    Is it possible I'm missing some step, previous configuration, dependency? Any further info that may be of service?

    Thanks in advance!

    opened by andres-cianio 2
  • Failed to run the given command

    Failed to run the given command

    I am using xcode 7.0.1 (latest version) Find the output after running the given command

    Invalid environment variable specifier: Data/Personal Usage: launchctl debug [--program ] [--start-suspended] [--guard-malloc] [--malloc-stack-logging] [--malloc-nano-allocator] [--debug-libraries] [--NSZombie] [--32] [--stdin [path]] [--stdout [path]] [--stderr [path]] [--environment VARIABLE0=value0 VARIABLE1=value1 ...] -- [argv0 argv1 ...] --program Use a different binary for the service's executable. --start-suspended Start the process suspended. --guard-malloc Enable libgmalloc(3) for the service. --malloc-stack-logging Enable malloc(3) stack logging. --malloc-nano-allocator Enables the malloc(3) nano allocator. --debug-libraries Sets DYLD_IMAGE_SUFFIX to "_debug". --NSZombie Enables NSZombie --32 Runs the service in 32-bit mode (only available on 64-bit platforms). --stdin When an argument is given, the file at that path is used as the service's stdin. With no argument, the current terminal is used as the service's stdin. --stdout When an argument is given, the file at that path is used as the service's stdout. With no argument, the current terminal is used as the service's stdout. --stderr When an argument is given, the file at that path is used as the service's stderr. With no argument, the current terminal is used as the service's stderr. --environment Set environment variables on the service.

    opened by MittaKarthik 2
  • SBShortcutMenuSimulator not working in Xcode 8 in iPhone 7

    SBShortcutMenuSimulator not working in Xcode 8 in iPhone 7

    It was working fine when I was using Xcode 7 and iPhone 6S [ iOS 9.1 ]. Now I am using Xcode 8 & iPhone 7, this does not work anymore. It executes all commands properly but does not display the Quick Action Menu.

    Please help.

    opened by speaktoalvin 15
Owner
DeskConnect
DeskConnect
⌨️ Add user-customizable global keyboard shortcuts to your macOS app in minutes

This package lets you add support for user-customizable global keyboard shortcuts to your macOS app in minutes. It's fully sandbox and Mac App Store c

Sindre Sorhus 1.1k Dec 29, 2022
A SwiftUI iOS App and Vapor Server to send push notifications fueled by Siri Shortcuts.

Puffery An iOS App written in SwiftUI to send push notifications fueled by Siri Shortcuts. You can follow other's channels and directly receive update

Valentin Knabel 29 Oct 17, 2022
How to add Keyboard Shortcuts to any SwiftUI App with UIKeyCommand

SwiftUI-Keyboard-Demo This tiny project was built to show how simple it is to add keyboard shortcuts (with UIKeyCommand) to any SwiftUI app. After imp

Emmanuel Crouvisier 29 Jul 13, 2022
An example project to demonstrate the new scripting capabilities of Shortcuts For Mac.

Scripting Shortcuts Test Project This simple project is designed to test the new scripting capabilities introduced in the Shortcuts app in macOS Monte

Alex Hay 16 Nov 17, 2022
Siri Shortcuts extension for calculating NN-based image hash.

NNHash Siri Shortcuts extension for calculating NN-based image hash. Based on nhcalc.

Yi Xie 3 Aug 9, 2021
A menu bar app to change input source swiftly using shortcuts on macOS Big Sur or later.

Source Switcher A menu bar app to change input sources swiftly using shortcuts on macOS Big Sur and later. View screenshots Introduction This app uses

null 34 Nov 9, 2022
Shortcuts support for Micro.blog

Ringgold The intial goal of this project is to provide Shortcuts support for Micro.blog. It may be expanded to include support for other Micropub impl

Maurice Parker 9 Nov 2, 2022
Swift wrapper for iOS Home Screen Quick Actions (App Icon Shortcuts)

QuickActions Swift wrapper for iOS Home Screen Quick Actions This wrapper creates dynamic quick actions. It is possible to define static quick actions

Ricardo Pereira 251 Dec 29, 2022
The app provides additional actions for the Shortcuts app on macOS and iOS.

Actions Supercharge your shortcuts The app provides additional actions for the Shortcuts app on macOS and iOS. Submit action idea (Submit an issue bef

Sindre Sorhus 1.2k Dec 29, 2022
Shortcuts support for Micro.blog

The intial goal of this project is to provide Shortcuts support for Micro.blog. It may be expanded to include support for other Micropub implementations.

Maurice Parker 9 Nov 2, 2022
Run Shortcuts straight from your Elgato StreamDeck!

About StreamDeck Shortcuts Welcome in! This Repo is for all things Shortcuts/StreamDeck! We’re all about making sure the software is Fast, Reliable, &

SENTINELITE 55 Dec 27, 2022
Commands providing shortcuts to common Postgres introspection queries (Swift port of heroku-pg-extras)

Commands providing shortcuts to common Postgres introspection queries (Swift port of heroku-pg-extras)

Sven A. Schmidt 2 May 27, 2022
A Shortcuts-like and highly customizable SFSymbol picker written in Swift.

SFTintedIconPicker SFTintedIconPicker is a Shortcuts-like and highly customizable SFSymbol picker written in Swift. Features Native Appearance Search

StephenFang 2 Aug 16, 2022
macOS utility for converting fat-frameworks to SPM-compatible XCFramework with arm64-simulator support

xcframework-maker macOS utility for converting fat-frameworks to SPM-compatible XCFramework with arm64-simulator support. ?? Description make-xcframew

Dariusz Rybicki 312 Dec 22, 2022
An iPhone Simulator "Wrapper" for SwiftUI Apps on macOS

SwiftUIPhone Run a SwiftUI app (or any SwiftUI view) in an iPhone Simulator "wrapper", directly on macOS! To be clear, this is not an iPhone Simulator

Justin Kaufman 7 May 20, 2022
A chat simulator app that uses FireBase for Authentication and chat storage

Chat-App Description Flash chat is a chat simulator app that uses FireBase for Authentication and chat storage Tools Used - Swift (Programming Languag

Victor Alvarenga 0 Oct 14, 2021
Mock UIImagePickerController for testing camera based UI in simulator

Mock UIImagePickerController to simulate the camera in iOS simulator.

Yonat Sharon 18 Aug 18, 2022
Free42 : An HP-42S Calculator Simulator

------------------------------------------------------------------------------- Free42 is a software clone of the Hewlett-Packard 42S calculator. If y

Thomas Okken 211 Dec 14, 2022
CLI for setting location in the iOS simulator

set-simulator-location This is a simple CLI for easily setting the location of the currently running iOS Simulator. Usage Set a specific latitude and

Mobile Native Foundation 619 Jan 6, 2023
How to Add Local Push Notification With timeInterval & Test On Simulator

Technicalisto How to Add Local Push Notification With timeInterval & Test On Simulator In Project Target ( Signing & Capapilities ) Add Capapility : 1

Aya Baghdadi 0 Jun 24, 2022