With latest Cocoapods 0.36.0, when using use_frameworks! option to build dependencies as frameworks (Swift), the Classy Pod dependency fails to compile because of a couple of calls to UIApplication.sharedApplication. UIApplication.sharedApplication is not relevant for app extensions (ex: custom keyboard).
In case of app extension, the live reload feature may have to be either disabled, or an additional top view controller property shall be set by clients on CASStyler. One possible workaround might be to use preprocessor macros to make that conditional on its definition through client Cocoapods post_install step.
At this time, I'm not quite sure it is very elegant and if there are better alternatives.
Any thoughts?
With latest Cocoapods 0.36.0, when using
use_frameworks!
option to build dependencies as frameworks (Swift), the Classy Pod dependency fails to compile because of a couple of calls toUIApplication.sharedApplication
.UIApplication.sharedApplication
is not relevant for app extensions (ex: custom keyboard).In case of app extension, the live reload feature may have to be either disabled, or an additional top view controller property shall be set by clients on
CASStyler
. One possible workaround might be to use preprocessor macros to make that conditional on its definition through client Cocoapodspost_install
step.At this time, I'm not quite sure it is very elegant and if there are better alternatives. Any thoughts?