netguru / ResponseDetective

Sherlock Holmes of the networking layer. :male_detective:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not compatible with Swift 4.1 on Xcode 9.3 targeting iOS 11.3

fphilipe opened this issue · comments

/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:23: error: implicit declaration of function 'xmlReadMemory' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        xmlDocPtr document = xmlReadMemory(memory, ((int)(strlen(memory))), NULL, NULL, XML_PARSE_NOCDATA | XML_PARSE_NOBLANKS);
                             ^
/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:23: error: declaration of 'xmlReadMemory' must be imported from module 'libxml2.parser' before it is required
In module 'libxml2' imported from /foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:8:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/usr/include/libxml2/libxml/parser.h:1138:3: note:
previous declaration is here
                xmlReadMemory           (const char *buffer,
                ^
/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:23: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        xmlDocPtr document = xmlReadMemory(memory, ((int)(strlen(memory))), NULL, NULL, XML_PARSE_NOCDATA | XML_PARSE_NOBLANKS);
                             ^
/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:23: error: conflicting types for 'xmlReadMemory'
In module 'libxml2' imported from /foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:8:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/usr/include/libxml2/libxml/parser.h:1138:3: note:
previous declaration is here
                xmlReadMemory           (const char *buffer,
                ^
/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:82: error: declaration of 'XML_PARSE_NOCDATA' must be imported from module 'libxml2.parser' before it is required
        xmlDocPtr document = xmlReadMemory(memory, ((int)(strlen(memory))), NULL, NULL, XML_PARSE_NOCDATA | XML_PARSE_NOBLANKS);
                                                                                        ^
In module 'libxml2' imported from /foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:8:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/usr/include/libxml2/libxml/parser.h:1104:5: note:
previous declaration is here
    XML_PARSE_NOCDATA   = 1<<14,/* merge CDATA as text nodes */
    ^
/foobar/app/Carthage/Checkouts/ResponseDetective/ResponseDetective/Sources/RDTXMLBodyDeserializer.m:18:102: error: use of undeclared identifier 'XML_PARSE_NOBLANKS'
        xmlDocPtr document = xmlReadMemory(memory, ((int)(strlen(memory))), NULL, NULL, XML_PARSE_NOCDATA | XML_PARSE_NOBLANKS);
                                                                                                            ^
6 errors generated.

Fixed in ce59947 and released in 1.2.3. Thanks for reporting! 🙌