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

Xcode 是否可以将第三方库(.a文件)添加到cordova项目?,xcode,cordova,Xcode,Cordova,我曾尝试将其添加到纯本机iOS项目中,效果良好 问题: 但是,当我尝试将其添加到cardova xcode项目时,会出现以下错误: 架构x86_64的未定义符号: _CTFontCollectionCreateFromAvailableFonts,引用自: libDebenuPDFLibraryCPiOS1115.adebenupdflibraryfontcont.o中的ScreenFontsint,int _CTFontCollectionCreateMatchingFontDescripto

我曾尝试将其添加到纯本机iOS项目中,效果良好

问题:

但是,当我尝试将其添加到cardova xcode项目时,会出现以下错误:

架构x86_64的未定义符号: _CTFontCollectionCreateFromAvailableFonts,引用自: libDebenuPDFLibraryCPiOS1115.adebenupdflibraryfontcont.o中的ScreenFontsint,int _CTFontCollectionCreateMatchingFontDescriptor,引用自: libDebenuPDFLibraryCPiOS1115.adebenupdflibraryfontcont.o中的ScreenFontsint,int _CTFontDescriptorCopyAttribute,引用自: libDebenuPDFLibraryCPiOS1115.adebenupdflibraryfontcont.o中的ScreenFontsint,int std::runtime_error::引用的常量: libDebenuPDFLibraryCPiOS1115.aformat.o中fmt::FormatError的vtable std::_1::基本字符串,std::_1::分配器>::atunsigned long const,引用自: TPDFIndObj::IsStreamstd::uu 1::基本字符串,std:uu 1::分配器>常量*,int&,int&在libDebenuPDFLibraryCPiOS1115.aDebenuPDFLibraryDocument.o中 std::_1::基本字符串,std::_1::分配器>::findchar,无符号长常量,引用自:

以下是我所做的步骤:

创建新的cordova Xcode项目 加上l​ibxml2.dylib​在目标的构建阶段,将库链接到“带库的链接二进制文件”列表 项目设置 加上D​ebenupdflibrarycpiosobjc115.h​项目的头文件 将静态库libDebenuPDFLibraryCPiOS1115.a添加到项目中 添加​信用证++​ 项目设置中“Otherlinkerflags”选项的选项 添加一个按钮并将其链接到名为buttonClick的iAction, 编译时有141个错误
明白了,只需要导入核心文本框架