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

unable to use it in Objective C project #36

Closed
github-prathma opened this issue Aug 16, 2017 · 12 comments
Closed

unable to use it in Objective C project #36

github-prathma opened this issue Aug 16, 2017 · 12 comments

Comments

@github-prathma
Copy link

Tried using it in objective C, even after adding use_frameworks! in podfile, It seems use_frameworks! doesn't work and also tried to add it manually in share extension of my app, but files in URLEmbeddedView source like OGDataProvider unable to access Kanna and Misterfusion files embedded in this pod source, even after adding Kanna and Misterfusion seperately using git clone.

@marty-suzuki
Copy link
Owner

marty-suzuki commented Aug 16, 2017

Hi @github-prathma

I've tried to use URLEmbeddedView in Objective-C, and it works fine without any errors.

2017-08-16 19 07 05

2017-08-16 19 09 48

@github-prathma
Copy link
Author

Its not working when using it with other Objective C pods

@github-prathma
Copy link
Author

And try using it in extension of main app. It won't work as Extension-Swift.h file will not generate

@marty-suzuki
Copy link
Owner

marty-suzuki commented Aug 16, 2017

URLEmbeddedView is written in Swift therefore, must add use_frameworks!.
Doesn't it work that importing other Objective-C pods with #import <libname/libname-Swift.h>?

@github-prathma
Copy link
Author

github-prathma commented Aug 16, 2017 via email

@marty-suzuki
Copy link
Owner

It works in my development environment.
This sample uses SDWebImage that written in Objective-C.

2017-08-16 22 30 00

2017-08-16 22 30 14

@github-prathma
Copy link
Author

github-prathma commented Aug 16, 2017 via email

@marty-suzuki
Copy link
Owner

I can import them like this (development target iOS 8.0).

2017-08-16 23 00 40

2017-08-16 23 00 54

Dose your XXX-Bridging-Header.h have circular references of framework importing?
Please check it.

I can not exactly respond because I could not grasp some problems that your project have.
Sorry

@github-prathma
Copy link
Author

github-prathma commented Aug 16, 2017 via email

@marty-suzuki
Copy link
Owner

I've used NSLayoutConstraint instead of MisterFusion since 0.10.0
Please try latest version.

@github-prathma
Copy link
Author

github-prathma commented Aug 18, 2017 via email

@marty-suzuki
Copy link
Owner

NSLayoutConstraint is used instead of MisterFusion in URLEmbeddedView since 0.10.0
0.10.0 is latest version of URLEmbeddedView.

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

No branches or pull requests

2 participants