Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Compile Error when used in App Extension with Cocoapods and use_frameworks! option (Swift) #92

Open
spifd opened this issue Mar 22, 2015 · 0 comments

Comments

@spifd
Copy link

spifd commented Mar 22, 2015

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant