Xcode7模拟3D Touch
github大神写了一个插件在Xcode 7模拟器上调试3D Touch,地址:SBShortcutMenuSimulator
测试步骤:
Step1:终端git clone https://github.com/DeskConnect/SBShortcutMenuSimulator.git
Step2: cd SBShortcutMenuSimulator
Step3: make
Step4:打开写好的程序,模拟器运行
Step5: xcrun simctl spawn booted launchctl debug system/com.apple.SpringBoard –environment DYLD_INSERT_LIBRARIES=$PWD/SBShortcutMenuSimulator.dylib
Step6: xcrun simctl spawn booted launchctl stop com.apple.SpringBoard
Step7: echo ‘strivingboy.-DTouchDemo’ | nc 127.0.0.1 8000注意: ‘strivingboy.-DTouchDemo’ ‘’里边写的是自己项目的Bundle identifier.