1.获取RevealServer.framework 文件
2.RevealServer.framework 文件 如何获取?
3.把 RevealServer.framework 文件 拖动到工程文件的根目录
4.工程配置(内容为:-ObjC -weak_framework RevealServer
)
5.工程配置 Build Settings -> Framework Search Paths ->Debug
添加 $(PROJECT_DIR)
6.设置脚本
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 "Reveal Server not loaded: RevealServer.framework could not be found."
fi