Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undeclared type SwiftWebViewBridge #14

Closed
TheKongBakPau opened this issue Feb 13, 2017 · 2 comments
Closed

undeclared type SwiftWebViewBridge #14

TheKongBakPau opened this issue Feb 13, 2017 · 2 comments
Labels

Comments

@TheKongBakPau
Copy link

TheKongBakPau commented Feb 13, 2017

I am having an issue getting my project to recognise the SwiftJavaScriptBridge module. It is in my Podfile (version 0.3.0) and I can browse the Pods and see the SwiftJavaScriptBridge folder with SwiftJavaScriptBridge.swift and the Support Files directory there. However when I declare a variable such as:

fileprivate var bridge: SwiftWebViewBridge!

I get the compile error:

Use of undeclared type 'SwiftWebViewBridge'

I have tried setting up a fresh project and encounter the same issue. I can successfully compile and run SwiftWebViewBridgeDemo though.

I even tried not using the Podfile and adding SwiftWebViewBridge.swift directly to my project and the result was still the same.

Is there a project setting I am missing? I don't have a problem with any other Podfiles so I don't think it is a path problem. I am using Swift 3.0. Any help would be greatly appreciated.

@TheKongBakPau TheKongBakPau changed the title undeclared type SwiftWebViewBridge undeclared type SwiftWebViewBridge label:question Feb 13, 2017
@TheKongBakPau TheKongBakPau changed the title undeclared type SwiftWebViewBridge label:question undeclared type SwiftWebViewBridge Feb 13, 2017
@ShawnFoo
Copy link
Owner

ShawnFoo commented Feb 14, 2017

Please import SwiftWebViewBridge module in the file you want to use it.
default

@ShawnFoo ShawnFoo assigned ShawnFoo and unassigned ShawnFoo Feb 14, 2017
@TheKongBakPau
Copy link
Author

Thanks, I'm such a doughnut!

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

No branches or pull requests

2 participants