Load the Reveal Server via an Xcode Breakpoint
-
In Reveal, open the Help menu and click Install Debugger Commands…
-
Click Continue to finish the installation.
-
Open your iOS or tvOS project in Xcode, and select View → Navigators → Show Breakpoint Navigator.
-
In the bottom left of the pane, click the + button and select Symbolic Breakpoint…
-
Enter
UIApplicationMain
into the Symbol field. -
Click the Add Action button, and ensure that Action is set to Debugger Command.
-
Copy and paste the following command into the field below:
1
reveal load
-
Check Automatically continue after evaluating actions.
-
Right click the newly created breakpoint and select Move Breakpoint To → User.
-
In Xcode, build and run your application under the iOS or tvOS Simulator.
Debugger on device
1
2
3
4
5
6
7
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
References
Reveal-Keyboard-Shortcuts-and-Modifiers
1
2
3
1. 需要做app多端同步(涉及到车况推送:推送什么时候触发看实现,比如有车况上报就推给在线设备)
2. app主动拉取车况希望支持 a.拿云端最新数据; b.从车端拿最新数据
3. app主动拉取(配置的)车况希望支持 a.拉部分车况 b. 拉全部车况 c.拉服务下全部车况 d.拉服务下部分车况