libxml2.dylib Xcode 7 Problem

Im having a problem with the linking of libxml2.dylib in the new Xcode 7 beta, a lot of people are having this problem and there is a solution if you just want it to work for the simulator but at the moment Im testing for the device and at the moment Im getting this error:


Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Products/Debug-iphoneos/Test.app/Test normal armv7

cd "/Users/user/Documents/iOS Development/Test"

export IPHONEOS_DEPLOYMENT_TARGET=9.0

export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/jpereira/Library/Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Products/Debug-iphoneos -F/Users/jpereira/Library/Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Products/Debug-iphoneos -filelist /Users/jpereira/Library/Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Intermediates/Test.build/Debug-iphoneos/Test.build/Objects-normal/armv7/Test.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Ixml2 -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/jpereira/Library/Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Intermediates/Test.build/Debug-iphoneos/Test.build/Objects-normal/armv7/Test_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/Test-ghbuoepejfdrqrhghgbfpqlttmve/Build/Products/Debug-iphoneos/Test.app/Test

Undefined symbols for architecture armv7:

"_xmlFree", referenced from:

_DictionaryForNode in XPathQuery.o

"_xmlFreeDoc", referenced from:

_PerformHTMLXPathQueryWithEncoding in XPathQuery.o

_PerformXMLXPathQueryWithEncoding in XPathQuery.o

"_htmlReadMemory", referenced from:

_PerformHTMLXPathQueryWithEncoding in XPathQuery.o

"_xmlReadMemory", referenced from:

_PerformXMLXPathQueryWithEncoding in XPathQuery.o

"_xmlXPathNewContext", referenced from:

_PerformXPathQuery in XPathQuery.o

"_xmlXPathFreeObject", referenced from:

_PerformXPathQuery in XPathQuery.o

"_xmlNodeDump", referenced from:

_DictionaryForNode in XPathQuery.o

"_xmlXPathEvalExpression", referenced from:

_PerformXPathQuery in XPathQuery.o

"_xmlXPathFreeContext", referenced from:

_PerformXPathQuery in XPathQuery.o

"_xmlNodeGetContent", referenced from:

_DictionaryForNode in XPathQuery.o

"_xmlBufferCreate", referenced from:

_DictionaryForNode in XPathQuery.o

"_xmlBufferFree", referenced from:

_DictionaryForNode in XPathQuery.o

ld: symbol(s) not found for architecture armv7




clang: error: linker command failed with exit code 1 (use -v to see invocation)



I add the libxml2.dylib as a linking library, also I have as my header search path /usr/include/libxml2


Any input would be greatly appreciated!!!!!

Answered by jpereira1 in 34851022

Answered my own question, with the latest Xcode 7 Beta, you are able to add a .dylib file without any issues going on with the device, please enjoy the info.

Accepted Answer

Answered my own question, with the latest Xcode 7 Beta, you are able to add a .dylib file without any issues going on with the device, please enjoy the info.

libxml2.dylib Xcode 7 Problem
 
 
Q