robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.6k stars 1.31k forks source link

How to use this library in Swift app? #167

Open 6ag opened 8 years ago

6ag commented 8 years ago

I was directly downloaded into the library project. Solve the problem arc. However, an error log is as follows.

Undefined symbols for architecture x86_64:
  "_xmlFreeDoc", referenced from:
      -[DAVResponse initWithMethod:headers:bodyData:resourcePath:rootPath:] in DAVResponse.o
  "_xmlReadMemory", referenced from:
      -[DAVResponse initWithMethod:headers:bodyData:resourcePath:rootPath:] in DAVResponse.o
  "_xmlStrcmp", referenced from:
      -[DAVResponse initWithMethod:headers:bodyData:resourcePath:rootPath:] in DAVResponse.o
      __XMLChildWithName in DAVResponse.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
AgoniNemo commented 7 years ago

@6ag hi,are you resolve it?

mkkroliks commented 6 years ago

I solved the issue by adding /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libxml2.2.tbd file to xcode project.