GithubHelp home page GithubHelp logo

Comments (9)

nighthawk avatar nighthawk commented on June 16, 2024

Indeed very strange. I'm looking into it... Never seen Xcode behave this way before. I suspect it's due to the project file being a bit older.

from aspolylineview.

nighthawk avatar nighthawk commented on June 16, 2024

Ok, figured it out. That #if is the cause:

#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0

Since iOS 7 [AS|MK]PolylineRenderer is what you should generally use, not [AS|MK]PolylineView. Xcode 9 is now setting the minimum version to iOS 8, so that class is, poof, gone when building with Xcode 9 which is causing the issues you're seeing. I'll restore the class and use a deprecation warning instead.

from aspolylineview.

jb2b38 avatar jb2b38 commented on June 16, 2024

Yes, I'll have another problem then, I tried to import the renderer instead of the view at first try, but I get this error : No such module 'ASPolylineRenderer'. No problem importing the ASPolylineView though.

from aspolylineview.

jb2b38 avatar jb2b38 commented on June 16, 2024

capture d ecran 2017-09-23 a 19 49 23
The header is properly included, so I don't get why I get the error.

from aspolylineview.

nighthawk avatar nighthawk commented on June 16, 2024

Latest theory: The (Carthage) framework gives preference to "ASPolylineView.h" rather than the umbrella header "ASPolylineView-iOS.h" and it therefore can't find ASPolylineRenderer class.

If I add an #import "ASPolylineRenderer.h" to "ASPolylineView.h" it indeed seems to fix it.

from aspolylineview.

nighthawk avatar nighthawk commented on June 16, 2024

Try this: https://github.com/nighthawk/ASPolylineView/releases/tag/v1.0.2

from aspolylineview.

jb2b38 avatar jb2b38 commented on June 16, 2024

I downloaded v1.0.2 and can see the new header inclusion in the framework, but Xcode still complains.
I look into it a bit more to give you details if anything catches my attention.

from aspolylineview.

jb2b38 avatar jb2b38 commented on June 16, 2024

Mmm, I spoke too quickly. I only need to import ASPolylineView to use the View AND the Renderer.
Thanks :)

from aspolylineview.

nighthawk avatar nighthawk commented on June 16, 2024

Great! Can understand the confusion. Naming a module/framework after a class is definitely not the best idea ;)

from aspolylineview.

Related Issues (5)

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.