Skip to content

Add an universal header makes same code working  #249

@aelam

Description

@aelam

Without use_frameworks!
we can import it by #import <WebViewJavascriptBridge/WebViewJavascriptBridge.h>

but if you turn on use_frameworks !
the origin import will be broken. #import <WebViewJavascriptBridge/WebViewJavascriptBridge.h>
But if adding a header with same name with framework, and put all headers in it
Both #import <WebViewJavascriptBridge/WebViewJavascriptBridge.h> and @import WebViewJavascriptBridge; can work

my case is no matter my pod is imported as dynamic framework or static library (by Cocoapods), I don't want the import staff break my code

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions