How To Debug A ScreenSaver on Mavericks with XCode 5
Until now, I installed the screensaver, launched System Preferences, chose the ScreenSaver and debugged it. There had to be a simpler way. And there is.
The idea is to tell XCode to use the ScreenSaverEngine as executable and launch it with our built screensaver.
This is how you do it:
- Edit scheme
- Edit your Pre-Actions:
cp -pr "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME" "$INSTALL_PATH/"
- Edit Run Info:
(choose ScreenSaverEngine located in /System/Library/FrameWorks/ScreenSaver.framework/Resources)
- Edit Run Arguments:
- Hit ⌘-R