Git Product home page Git Product logo

Comments (8)

allaire avatar allaire commented on June 17, 2024 7

@danielgindi @ahmadabudawod Please see http://stackoverflow.com/a/30648104/277370. When you use embedded framework, I had to do like the answer on SO. Using the #import <project>-Swift.h works well when you directly add the library files (Classes/) to your project (instead of just adding the .xcodeproj and add it to embed frameworks).

I think when you only add the xcodeproj, You must import it with #import "Charts/Charts-Swift.h"

from charts.

RbeiAppsTeam avatar RbeiAppsTeam commented on June 17, 2024 2

@allaire thumbs up. your solution helped me. I am not sure why, but the previous comments of importing #import -Swift.h did not solve the error.

from charts.

vishw3 avatar vishw3 commented on June 17, 2024 1

actually it should be "yourprojectname-swift.h" if you are using in your project.

also in build phase check "Embedded content contains swift code"s should be yes

from charts.

mobidever avatar mobidever commented on June 17, 2024 1

@allaire Thumbs up again. Hey @danielgindi I think the same can be updated for newbies. I was stuck with the same, being newbie to objc-swift bridging. Thanks again @allaire , you saved the day.

from charts.

danielgindi avatar danielgindi commented on June 17, 2024

Thanks @vishw3

from charts.

ahmadabudawod avatar ahmadabudawod commented on June 17, 2024

sorry for late but still have the same error

from charts.

inix avatar inix commented on June 17, 2024

@allaire
Xcode 8.1,iOS 10.1, I have this issue.
Thank you for your solution.

from charts.

srivastavag8 avatar srivastavag8 commented on June 17, 2024

put it in .m file and leave a forward declaration in .h

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.