I have a class UserAccountManager
that needs to be accessible from two targets, the main iOS app and an extension respectively. During initialization, this class will call out to a separate framework that due to its dependence on the AppDelegate is only accessible from the main iOS application. Unfortunately this does not compile as that framework is not available in the extension.
How can I check the target membership of that framework, and only make the call if its available?