Skip to content
This repository was archived by the owner on Jun 19, 2019. It is now read-only.
This repository was 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

@spifd

Description

@spifd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions