Coder Social home page Coder Social logo

oriontransfer / swxmlmapping Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 60 KB

A light weight Objective-C to XML serialization framework.

Home Page: http://www.oriontransfer.co.nz/frameworks/SWXMLMapping

License: MIT License

Objective-C 96.57% Swift 3.43%

swxmlmapping's People

Contributors

ioquatix avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swxmlmapping's Issues

Compiling error in SWXSLTransform with iOS 7 SDK or 10.9 (Xcode 5)

When using iOS 7 or 10.9 SDK SWXSLTransform.m will not compile without a small change. I have discovered that due to changes in libxml, it needed changing to use the new output buffer accessor methods for the xmloutput buffer

Line 98 causes error 'Incomplete definition of type struct_xmlBuf'
NSData * result = [[[NSData alloc] initWithBytes:outputBuffer->buffer->content length:outputBuffer->buffer->use] autorelease];

With the new accessor method this becomes
NSData * result = [[NSData alloc] initWithBytes:xmlOutputBufferGetContent(outputBuffer) length:xmlOutputBufferGetSize(outputBuffer)];

This works fine but when run on iOS 6 it not surprisingly results in 'symbol not found'. I can't seem to work out how to do it conditionally in a way which Xcode will compile with base SDK iOS 7 and run on both iOS 6 and iOS 7.

I have been trying and considering:

  • Checking xmlOutputBufferGetContent != NULL
  • Using libxml2.2 instead of libxml2
  • Checking LIBXML_DOTTED_VERSION
  • Checking for LIBXML2_NEW_BUFFER new methods defined

But all of these result in only one line always being chosen before or after compilation. The few other people dealing with this issue (Googling) appear to be always compiling targeting one version of libxml.

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.