1、导入frame
启动Reveal并打开library目录
2.将RevealServer.framework复制到项目的根目录
3.选中项目target ----> Build Settings ----> 搜索 Framework Search Paths ,填
$(inherited) $(SRCROOT)
4.Build Settings ----> Other Linker Flags ,填入
-ObjC -weak_framework RevealServer
5.Build Settings ----> Runpath Search Paths ,填入
$(inherited) @executable_path/Frameworks
6.Build Phases ----> 点击+添加 New Run Script phase
复制下面的内容到描述里
export REVEAL_SERVER_FILENAME="RevealServer.framework"
# Update this path to point to the location of RevealServer.framework in your project.
export REVEAL_SERVER_PATH="${SRCROOT}/${REVEAL_SERVER_FILENAME}"
# If configuration is not Debug, skip this script.
[ "${CONFIGURATION}" != "Debug" ] && exit 0
# If RevealServer.framework exists at the specified path, run code signing script.
if [ -d "${REVEAL_SERVER_PATH}" ]; then
"${REVEAL_SERVER_PATH}/Scripts/copy_and_codesign_revealserver.sh"
else
echo "Cannot find RevealServer.framework, so Reveal Server will not be started for your app."
fi
7.打开项目,运行,就可以在reveal中看到项目。