是否可以将第三方库(.a文件)添加到cordova项目中?

时间:2015-09-10 08:51:24

标签: xcode cordova

我已尝试将this debenu library添加到纯本机iOS项目中,但它可以正常运行。

问题:

但是当我尝试将它添加到cardova xcode项目时,它会给我这些错误:

  

架构x86_64的未定义符号:     “_CTFontCollectionCreateFromAvailableFonts”,引自:         libDebenuPDFLibraryCPiOS1115.a中的ScreenFonts(int,int)(DebenuPDFLibraryFontConst.o)     “_CTFontCollectionCreateMatchingFontDescriptors”,引自:         libDebenuPDFLibraryCPiOS1115.a中的ScreenFonts(int,int)(DebenuPDFLibraryFontConst.o)     “_CTFontDescriptorCopyAttribute”,引自:         libDebenuPDFLibraryCPiOS1115.a中的ScreenFonts(int,int)(DebenuPDFLibraryFontConst.o)     “std :: runtime_error :: what()const”,引自:         libdebenuPDFLibraryCPiOS1115.a中的fmt :: FormatError的vtable(format.o)     “std :: __ 1 :: basic_string,std :: __ 1 :: allocator> :: at(unsigned long)const”,引自:         libDebenuPDFLibraryCPiOS1115.a中的TPDFIndObj :: IsStream(std :: __ 1 :: basic_string,std :: __ 1 :: allocator> const *,int&,int&)(DebenuPDFLibraryDocument.o)     “std :: __ 1 :: basic_string,std :: __ 1 :: allocator> :: find(char,unsigned long)const”,引自:

这是我做的步骤:

  1. 创建一个新的cordova Xcode项目
  2. 将l ibxml2.dylib库添加到目标构建阶段中的“使用库链接二进制文件”列表中 项目设置
  3. 将D ebenuPDFLibraryCPiOSObjC1115.h头文件添加到项目中
  4. 将静态库libDebenuPDFLibraryCPiOS1115.a添加到项目中
  5. 将lc ++选项添加到项目设置中的“Otherlinkerflags”选项
  6. 添加一个按钮并将其链接到名为buttonClick,
  7. 的IBAction
  8. 编译141错误

0 个答案:

没有答案