Nag*_*h M 6 iphone objective-c ios phonegap-plugins cordova
我使用PhoneGap 0.9.6版创建了iOS应用程序.现在我要添加Email Composer选项.所以,我用这个URL添加它https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/EmailComposer 它在Simulator中工作正常.但是,当我使用iTunes同步".app"文件到设备时(因为我无法直接从Xcode运行,设备和XCode有问题).
在iPhone完成同步后,我打开了应用程序,它会在闪屏之后立即崩溃.
如果我删除MessageUI.framework和那两个类.然后采取构建和同步到设备工作正常.添加MessageUI.framework时才遇到问题.
即使我没有在任何地方使用MessageUI.刚刚在链接的库中添加了MessageUI并与iphone构建和同步,它在闪存屏幕后也崩溃了.
我找到了这个URL https://github.com/phonegap/phonegap-iphone/issues/203,但我现在无法转移到另一个版本的PhoneGap.任何更好的解决方案或我在步骤中出错的地方?
更改getCommandInstance方法,如下所示。
-(id) getCommandInstance:(NSString*)className
{
/** You can catch your own commands here, if you wanted to extend the gap: protocol, or add your
* own app specific protocol to it. -jm
**/
//if(className==@"Connection")
if([className isEqualToString:@"Connection"])
return nil;
return [super getCommandInstance:className];
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
567 次 |
| 最近记录: |