Cordova EmailComposer插件构建错误

时间:2014-04-30 10:15:39

标签: android ios email cordova plugins

我正在研究Sencha Touch 2.3项目并使用Cordova进行原生包装。我添加了此处描述的电子邮件编辑器插件:https://github.com/katzer/cordova-plugin-email-composer

安装似乎很好。我正在开发Mac OS并为Android和iOS构建。但是,当我尝试构建时,我在下面得到以下错误。知道这里有什么问题以及如何解决它?它似乎缺少“APPEmailComposer.d”。

[INF] [shellscript] Details:  Failed to load dependencies output contents from ``/Users/minamu1/dev/sencha/hadro/qxtapp/cordova/platforms/ios/build/qxtapp.build/Debug-iphonesimulator/qxtapp.build/Objects-normal/i386/APPEmailComposer.d''''''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “APPEmailComposer.d” couldn’t be opened because there is no such file." UserInfo=0x7fc82609c620 '{'NSFilePath=/Users/minamu1/dev/sencha/hadro/qxtapp/cordova/platforms/ios/build/qxtapp.build/Debug-iphonesimulator/qxtapp.build/Objects-normal/i386/APPEmailComposer.d, NSUnderlyingError=0x7fc82609a280 "The operation couldn’t be completed. No such file or directory"'}'. User info: '{'
[INF] [shellscript]     NSFilePath = "/Users/minamu1/dev/sencha/hadro/qxtapp/cordova/platforms/ios/build/qxtapp.build/Debug-iphonesimulator/qxtapp.build/Objects-normal/i386/APPEmailComposer.d";
[INF] [shellscript]     NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
[INF] [shellscript] '}'.
[INF] [shellscript] Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
[INF] [shellscript] Thread:   <NSThread: 0x7fc826050f30>'{'name = (null), num = 9'}'
[INF] [shellscript] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
[INF] [shellscript] ** BUILD FAILED **

我的cordova / plugins导演包含

android.json
de.appplant.cordova.plugin.email-composer
ios.json
org.apache.cordova.inappbrowser

非常感谢任何帮助!

感谢。

2 个答案:

答案 0 :(得分:0)

找到它。这是一个依赖问题。只需从cordova中删除iOS平台,删除其他插件,然后安装emailcomposer,添加iOS平台并重新安装其他插件。工作得很好。我在这里找到了解决方案https://github.com/katzer/cordova-plugin-email-composer/issues/20

希望这有助于某人。

答案 1 :(得分:0)

以防万一,另一种解决方法:有时只需将项目名称的第一个字母切换为大写字母即可让cordova工作:

cordova create mobile/ com.example.eit Qxtapp -d
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
cordova platform add ios
cordova prepare ios
cordova compile ios
cordova emulate ios