美文网首页
Xcode7模拟3D Touch

Xcode7模拟3D Touch

作者: 苏小贱 | 来源:发表于2015-12-14 11:13 被阅读102次

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.

相关文章

网友评论

      本文标题:Xcode7模拟3D Touch

      本文链接:https://www.haomeiwen.com/subject/hkluhttx.html