Git Product home page Git Product logo

sbshortcutmenusimulator's Introduction

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.

sbshortcutmenusimulator's People

Contributors

arix avatar danieldabate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sbshortcutmenusimulator's Issues

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!

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

As SBS works.

Hey boys
I don't understand as the SBS works in Simulator.
Someone can I explain to use this library ?

SpringBoard stop running

echo 'com.apple.mobilecal' | nc 127.0.0.1 8000
after that command , the Simulator show 'SpringBoard stop running'

how to uninstall it?

it not work on my Xcode 7,so please tell me how to uninstall it.now,the iphonesimulator's SpringBoard is just a black view.

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.

"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$

Not working with XCode 7.1?

Was just playing around with this and it seems, that it will not work under 7.1?

Is that correct?

It works before unter 7.0.1

Doesn't work

Doesn't work, nothing happens, tried it on multiple simulators.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.