Reveal脚本
2020-08-26 本文已影响0人
奶茶大叔
Reveal脚本
1.添加断点 symbolic breakpoint
(1) Symbolic 输入:UIApplicationMain (2) Debugger Command 输入:reveal load (3) 输入完成之后,右键此断点,Move Breakpoint To --> User。
2.添加脚本
(1) Build Phases, 点击上边的加号,然后选择New Run Script Phase。 (2) 在最下面会出现"Run Script",把"Run Script"改成:“Integrate Reveal Server”,在里面粘贴这些内容:
# reveal 真机调试脚本 由于会导致打包失败 所已屏蔽
#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