美文网首页
Reveal的调试配置

Reveal的调试配置

作者: VinZZZZ | 来源:发表于2018-12-14 09:59 被阅读12次

Reveal调试配置

首先从 https://github.com/vin-zhou/Reveal 中, 下载
RevealServerCommands.py 和 reveal_server_build_phase.sh 到本地 /Applications/Reveal.app/Contents/SharedSupport/Scripts/ 文件夹下。(若无Scripts文件夹,则新建之)

然后:

  1. 在~/.lldbinit 中添加:
### Reveal LLDB commands support
command script import /Applications/Reveal.app/Contents/SharedSupport/Scripts/RevealServerCommands.py
###
  1. 在工程的Build Phases中添加RunScript:
REVEAL_APP_PATH=$(mdfind kMDItemCFBundleIdentifier="com.ittybittyapps.Reveal2" | head -n 1)
BUILD_SCRIPT_PATH="${REVEAL_APP_PATH}/Contents/SharedSupport/Scripts/reveal_server_build_phase.sh"
if [ "${REVEAL_APP_PATH}" -a -e "${BUILD_SCRIPT_PATH}" ]; then
"${BUILD_SCRIPT_PATH}"
else
echo "Reveal Server not loaded: Cannot find a compatible Reveal app."
fi
  1. 在工程中添加断点 Symbolic BreakPoint: UIApplicationMain,
  • debug commands: reveal load

若xcode执行出现permissi denied错误,则cd 到Scripts文件夹,
执行

chmod 775 reveal_server_build_phase.sh
chmod 775 RevealServerCommands.py

参考:

相关文章

网友评论

      本文标题:Reveal的调试配置

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