Ios 将Swift框架添加到Cordova插件
我在将框架导入Cordova插件时遇到问题。当我尝试在源文件中访问它们时,它会失败,并出现“未声明”错误。我的插件文件夹结构如下:Ios 将Swift框架添加到Cordova插件,ios,swift,cordova,frameworks,Ios,Swift,Cordova,Frameworks,我在将框架导入Cordova插件时遇到问题。当我尝试在源文件中访问它们时,它会失败,并出现“未声明”错误。我的插件文件夹结构如下: plugin.xml ios/ERS.swift ios/ERS-Bridging-Header.h ios/libs/AEXML.framework ios/libs/KissXML.framework ios/libs/SwiftyRSA.framework ios/libs/XUCore.framework ios/libs/XUEETCommunicator
plugin.xml
ios/ERS.swift
ios/ERS-Bridging-Header.h
ios/libs/AEXML.framework
ios/libs/KissXML.framework
ios/libs/SwiftyRSA.framework
ios/libs/XUCore.framework
ios/libs/XUEETCommunicator.swift
桥接头的内容为:
#ifndef ERS_Bridging_Header_h
#define ERS_Bridging_Header_h
#import <AEXML/AEXML.h>
#import <KissXML/KissXML.h>
#import <SwiftyRSA/SwiftyRSA.h>
#import <XUCore/XUCore.h>
#endif
\ifndef-ERS\u-bridgeing\u-Header\u h
#定义ER_桥接_标题_h
#进口
但在此之后,项目文件已损坏,无法解析
我正在审查XCode 9中的代码,并试图通过
爱奥尼亚科尔多瓦构建ios
同样的结果
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="eet"><param name="ios-package" value="eet" />
</feature>
</config-file>
<source-file src="src/ios/ERS.swift" />
<source-file src="src/ios/ERS-Bridging-Header.h" />
<!-- Library for EET -->
<source-file src="src/ios/libs/XUCzechLocaleSpecificData.swift" />
<source-file src="src/ios/libs/XUEETCommunicator.swift" />
<framework src="src/ios/libs/AEXML.framework" custom="true" embed="true"/>
<framework src="src/ios/libs/KissXML.framework" custom="true" embed="true" />
<framework src="src/ios/libs/SwiftyRSA.framework" custom="true" embed="true" />
<framework src="src/ios/libs/XUCore.framework" custom="true" embed="true" />
</platform>