Git Product home page Git Product logo

Comments (4)

chrisballinger avatar chrisballinger commented on August 30, 2024

Unfortunately SDKROOT doesn't work in modulemaps. If it does, I haven't been able to get it to work. A possible solution could be to use prepare_command to modify a modulemap template with the correct SDK paths.

The latest published podspec should mirror what's in master. I think what might be needed are separate modulemap definitions and ifdefs for tvos / tvos simulator.

from kissxml.

jondwillis avatar jondwillis commented on August 30, 2024

@chrisballinger Yes. I went with that approach, introducing libxmlTVOS and libxmlTVOSSimu, and then changed the imports to something like:

#if DDXML_LIBXML_MODULE_ENABLED
#if TARGET_OS_IOS && !TARGET_OS_SIMULATOR
@import libxml;
#elif TARGET_OS_IOS && TARGET_OS_SIMULATOR
@import libxmlSimu;
#if TARGET_OS_TV && !TARGET_OS_SIMULATOR
@import libxmlTVOS;
#elif TARGET_OS_TV && TARGET_OS_SIMULATOR
@import libxmlTVOSSimu;
#elif TARGET_OS_MAC
@import libxmlMac;
#endif
#else
#import <libxml/tree.h>
#endif

from kissxml.

chrisballinger avatar chrisballinger commented on August 30, 2024

Great! If you submit a PR I'll merge it

from kissxml.

chrisballinger avatar chrisballinger commented on August 30, 2024

Fixed in a better way in master branch, removing the need for funky modules entirely

from kissxml.

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.