Reveal 4.0集成(纯手动)
2018-01-17 本文已影响114人
EdenChow
1.获取RevealServer.framework 文件
C4403791-CF94-42E8-9EE6-E391C14D9601.png
2.RevealServer.framework 文件 如何获取?
3.把 RevealServer.framework 文件 拖动到工程文件的根目录
4.工程配置(内容为:-ObjC -weak_framework RevealServer
)
5.工程配置 Build Settings -> Framework Search Paths ->Debug
添加 $(PROJECT_DIR)
6.设置脚本
87297CF8-A0B2-4F96-B912-08CB9E286FDB.png
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