-
Grab this project
-
Add your existing app extension folder to this project in Xcode: reference only, don't
copy files as needed
, doadd to targets
Debuggles. -
Specify your app extension class in AppDelegate.swift.
-
Also speciy your app extension Nib name, omitting
.xib
. -
If necessary, use the
DEBUGGLES
preprocessor flag in your extension
#if DEBUGGLES
print("this will be ignored in Safari but not in Debuggles")
#endif
#if !DEBUGGLES
print("this will be ignored in Debuggles but not in Safari")
#endif
- Run
If deleting your app extension from the project, be sure to only remove references, not delete the files.
Safari app extensions are available in macOS 10.12 and later, and in OS X 10.11. 5 with Safari 10 installed.
Debuggles is available under the Apache License, excluding anything in the AddSafariAppExtensionHere
folder. Debuggles is (C) Copyright 2020 Andrew Kingdom.