MBProgressHUD will not build when targeting an app extension due to calling [UIApplication sharedApplication] which is annotated as NS_EXTENSION_UNAVAILABLE.
We've implemented a fix by calling sharedApplication with performSelector instead of calling it directly. This should be safe because this particular code is conditionally executed on iOS < 8 which is before app extensions were introduced.
MBProgressHUD will not build when targeting an app extension due to calling
[UIApplication sharedApplication]
which is annotated asNS_EXTENSION_UNAVAILABLE
. We've implemented a fix by callingsharedApplication
withperformSelector
instead of calling it directly. This should be safe because this particular code is conditionally executed on iOS < 8 which is before app extensions were introduced.