In PhoneGap app and MessgeUI.framework error only on iOS device

I created an iOS application using PhoneGap version 0.9.6. Now I'm going to add the Email Composer option. So, I used this URL to add https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/EmailComposer It works great in Simulator. But when I sync this β€œ.app” file using iTunes on the device (because I cannot start directly from Xcode, you have problems with the device and Xcode).

After syncing on iPhone, I opened an application that immediately worked after the flash screen.

If I remove MessageUI.framework and these two classes. Then build and synchronize with the device. Only problem occurs when I add MessageUI.framework.

Even I have not used this MessageUI anywhere. just added MessageUI to the linked libraries, as well as building and syncing with the iphone, it also crashes after the flash screen.

I found this URL https://github.com/phonegap/phonegap-iphone/issues/203 , but now I can’t switch to another version of PhoneGap. Any better solution or where am I going wrong by the steps?

+6
source share
1 answer

Modify the getCommandInstance method as shown below.

-(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]; } 
+3
source

Source: https://habr.com/ru/post/900836/


All Articles