Remove framework headers always, not just when building for installation.
Update shortcutrecorder to eliminate deprecated API usage, which triggers logging.