iphone - ".../libtool: can 'T locate file for: -lxml2"

Habe ich 2 Projekte in einem xcode-Arbeitsbereich. Eine ist eine statische Bibliothek und die anderen eine Verwendung der statischen Bibliothek.

In die statische Bibliothek, die ich Hinzugefügt die GDataXMLNode.h und GDataXMLNode.m-Dateien, die ich in der Haupt-Projekt. Die GDataXMLNode.h ist eine öffentliche Datei, so dass es sichtbar in der Haupt-Projekt. Ich habe auch mit dem Ziel, beide Projekte mit libxml2.dylib. Und ich auch in der Header-Suchpfade und User Header Search Paths den Speicherort /usr/include/libxml2.

Obwohl diese, erhalte ich eine Apple Mach-O-Bibliothekar Fehler:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: can't locate file for: -lxml2
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: file: -lxml2 is not an object file (not allowed in a library)
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: file: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libxml2.dylib is a dynamic library, not added to the static library
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: file: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libxml2.dylib is a dynamic library, not added to the static library
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: file: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libz.dylib is a dynamic library, not added to the static library
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: file: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libz.dylib is a dynamic library, not added to the static library
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool failed with exit code 1

Wissen Sie, wie kann ich dieses Problem beheben?

Dieser war schnell, obwohl ich versuche seit gestern. Ich Schaffe es, um es zu beheben, durch das entfernen dieser aus dem Build-Einstellungen: OTHER_LDFLAGS = "-lxml2"; Wünsche Euch allen das beste!

InformationsquelleAutor Bogdan | 2011-09-20

Schreibe einen Kommentar