2014-11-10 2 views
1

/USR/включать/libxml2 Я пытаюсь интегрировать набор SVG в моих КСН project.I пробовал эти шагиSVG Комплект для ИОС, файл не найден ошибка

Open "SVGKit-iOS.xcodeproj", and Build it (cmd-B) 
in left navbar, scroll to bottom, and open the "Products" section 
right click the library ("libSVGKitBLAHBLAH.a") and select "show in finder" 
GO UP ONE FOLDER 
select the "Debug-universal" (or Release-universal if you were building in Release mode) folder 
Drag/drop the .a file and the "usr" folder into your project (select the "Copy files" checkbox) 
In Build Settings, select "Other Linker Flags" and add "-ObjC" 
Edit your build settings and set "C/C++ Compiler Version" = "LLVM Compiler" 
Edit your build settings and add "Other Linker Flags" = "-ObjC" 
Add ALL the frameworks and 3rd party libraries listed below (go to "Build Phases", and "Link Binary with Libraries"): 
    CoreText 
    CoreImage 
    libxml2.dylib 
    QuartzCore 
    CoreGraphics 
    UIKit 

Согласно документации, однако, когда я пытаюсь для импорта файла заголовка, он говорит, что файл не найден. Также существует путь поиска заголовка/usr/include/libxml2. Пожалуйста, сообщите, что мне не хватает

ответ

0

Вы должны скопировать файл и содержимое usr/local/include и вставьте их в другое место. Затем в вашем проекте из Xcode щелкните правой кнопкой мыши -> «Добавить файлы в ...» и добавьте эти скопированные файлы. Убедитесь, что вы установите флажок «Скопируйте элементы при необходимости»