Ios 具有Cocoapod依赖项的Cordova插件不';t构建

Ios 具有Cocoapod依赖项的Cordova插件不';t构建,ios,cordova,cocoapods,cordova-plugins,Ios,Cordova,Cocoapods,Cordova Plugins,我想在我想在我的应用程序中使用的一些本机库上创建一个Cordova包装器。iOS库在CocoaPods上可用,但只要我添加框架依赖项,应用程序就无法构建 复制步骤 创建插件框架: plugman create --name twinpush --plugin_id twinpush-plugin --plugin_version 1.0 --path twinpush-plugin cd twinpush-plugin/twinpush plugman platform add --platfo

我想在我想在我的应用程序中使用的一些本机库上创建一个Cordova包装器。iOS库在CocoaPods上可用,但只要我添加框架依赖项,应用程序就无法构建

复制步骤 创建插件框架:

plugman create --name twinpush --plugin_id twinpush-plugin --plugin_version 1.0 --path twinpush-plugin
cd twinpush-plugin/twinpush
plugman platform add --platform_name ios
plugman platform add --platform_name android
plugman createpackagejson .
plugin.xml
中将Cocoapods框架依赖项添加到iOS目标:

<platform name="ios">
    <config-file parent="/*" target="config.xml">
        <feature name="twinpush">
            <param name="ios-package" value="twinpush"/>
        </feature>
    </config-file>
    <source-file src="src/ios/twinpush.m"/>
    <framework src="TwinPushSDK" type="podspec" spec="2.2.0"/>
</platform>
插件安装成功,日志显示如何安装
TwinPushSDK
pod,但是,尝试从命令行运行(或构建)项目:

cordova run ios
由于以下错误而失败:


错误:应为“/*”、“//”或“{”,但“如果发布插件,我可以尝试查看该错误,该错误可以通过plugman创建的空骨架进行复制。我已添加了复制该错误所需的步骤。这似乎是CLI问题,因此我在他们的JIRA中打开了一个票证:
cordova run ios