Highlighted

AEM Mobile Developer Tools build failure with cordova-plugin-facebook4 plugin

dond95595285

17-08-2016

I am trying to install the cordova-plugin-facebook4 plugin using the guide here->Use Cordova plug-ins in AEM Mobile . I have successfully installed other custom cordova plugins but this one fails when using the "aemm build ios" command. The error is that the file "AppDelegate.h" cannot be found. I did check the headers search in XCODE and everything was correct there. But, when I looked in the project folders the "AppDelegate.h" and other AppDelegate files are not there.

Replies

Highlighted

Hodmi

07-09-2016

Due to the wide variety of plugins and the various methods they can be implemented, its not possible for AEM Mobile to support all custom plugins.

I'm not overly familiar with the facebook plugin, but are a couple of patterns that we have noticed can cause problems:

App Delegates:  Plugins that require reference to application-level classes, such as AppDelegate are currently not supported by the developer tools. This is because the application is not available when the framework is being built. The plugin would need to be modified to be standalone and not dependent upon AppDelegate.  This would include any plugins that require access to AppDelegate.h or AppDelegate.m

Main View Controllers:  Apps that require main view controllers (MainViewController.h, MainViewController.m, MainViewController.xib, or

main.m) will not work with AEM Mobile due to the fact that the Cordova Plugins are included as a framework.