ios - Cordova 共享包 2.2.0

标签 ios cordova phonegap-plugins sharekit

我是使用phonegap进行iOS开发的新手,

我尝试使用 sharekit 插件,我按照自述文件(sharekit 2.0)中提到的所有步骤进行操作,但它仍然无法正常工作,我收到以下 3 个错误:

/..path../Plugins/ShareKitPlugin.m:31:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'
/..path../Plugins/ShareKitPlugin.m:85:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'
/..path../Plugins/ShareKitPlugin.m:102:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'

问题是我找不到任何适用于 cordova 2.2.0 的共享包,因为我得出的结论是该插件的旧版本不支持新的 cordova 2.2.0。

有什么建议可以获取最新的插件吗?或者如何修复这些错误?

最佳答案

我在使用phonegap 2.7.0以及存储库中的最新sharekit和sharekitplugin时遇到了同样的问题。在导入语句下方添加此行。它编译并且插件对我有用。我不确定这是否正确。

#import "SHKMail.h"// Add below this statement
char *SHKURLContentTypeWebpage="text/html";

该插件已有 2 年没有更新,因此这可能与新的 Sharekit 不兼容。

关于ios - Cordova 共享包 2.2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13679486/

相关文章:

ios - 在 xcassets 中使用组加载图像数组

ios - UITableView 每个行分隔符上不需要的白线

iphone - iPhone如何从UIWebView访问相机?

javascript - 将 Base 64 音频文件 Mp3 解码为可播放的 Mp3

ios - 每50分后加速游戏

objective-c - UIButton 在 UIScrollView 中不起作用

javascript - 在 Phonegap 应用程序中,如何指示正在向服务器发出请求/响应?

ios - 移动应用程序与网络应用程序 - Apple 不再接受网络应用程序?

typescript - 如何使用 TypeScript 在 Ionic 2 中获取设备 ID

javascript - 使用 navigator.notification.alert 代替普通的 js 警报