用于ios的SVG工具包,找不到文件错误

时间:2014-11-10 21:47:32

标签: ios svg

/ usr / include / libxml2我正在尝试在我的ios项目中集成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也在那里。请告知我缺少的内容

1 个答案:

答案 0 :(得分:0)

您应该复制.a文件和usr / local / include文件夹的内容并将其粘贴到其他位置。然后在Xcode的项目中右键单击 - >"将文件添加到..."并添加这些复制的文件。确保选中"如果需要,复制项目"