DeskConnect / SBShortcutMenuSimulator

3D Touch shortcuts in the Simulator
MIT License
1.75k stars 164 forks source link

Could not find service "com.apple.SpringBoard" in domain #11

Open gruhls508 opened 8 years ago

gruhls508 commented 8 years ago

Ran

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

Rec'd this output make-output

Then trying to implement the first action under "Usage" (running SpringBoard with iPhone 6s simulator open.) The result:

sb-fail

lehn0058 commented 8 years ago

I'm seeing this same issue on one computer, but it is working on another. Must be some Xcode setting? Both are on the same version of OSX Yosemite and using Xcode 7.1

lehn0058 commented 8 years ago

Actually, I just got it working now. I had to kill and re-launch the iPhone simulator, make sure the Apple Watch simulator was closed, AND run the first command using sudo.

gruhls508 commented 8 years ago

Ok, I did reboot iOS simulator but may have had Watch Sim open.

By "first command," do you mean the line where you run make?

lehn0058 commented 8 years ago

Sorry, I meant the command:

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

gruhls508 commented 8 years ago

Awesome. I'll give it a shot as soon as I get a chance.

gruhls508 commented 8 years ago

Tried again, ran with sudo, no Watch and tried restarting iPhone simulator. Attaching screenshot--got 'no devices booted' every time with iPhone 6s simulator open (Running El Cap w/ Xcode 7.2)

running sbshortcut

UPDATE: Saw resolved issue https://github.com/DeskConnect/SBShortcutMenuSimulator/issues/2 and tried the fixes listed there.

Nothing that was listed resolved the issue. I also checked that I have the correct config for shortcut actions in my .plist, which I do; I have a sample action listed under 'UIApplicationShortcutItems.'

AriX commented 8 years ago

You definitely should not be running any of these commands with sudo.

Do you have multiple versions of Xcode installed? If so, you need to make sure the one selected (with xcode-select) matches the Simulator you're using. You may also need to reboot if you have been using multiple different versions of Xcode.

gruhls508 commented 8 years ago

@AriX I have one version of Xcode showing in my Applications folder. Spotlight and file search are not revealing any others.

I'm not sure I understand what you mean by making sure the Xcode version shown with xcode-select matches my Simulator. I ran xcode-select -v but googling "ios simulator check xcode version" and the like hasn't gotten me answers.

AriX commented 8 years ago

You want xcode-select -p. Make sure it matches the path of the Xcode you're expecting.

gruhls508 commented 8 years ago

Here is the output for xcode-select -p, and the Xcode app I use shown in my Applications folder in Finder.

xcode-path confirm

wongzigii commented 8 years ago

Met the same issue here.

wongzigii commented 8 years ago

Re-launch the iPhone simulator if you met this issue. :D