Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
dond95595285
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
dond95595285
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
dond95595285
Level 1

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

Avatar

Avatar
Boost 50
Level 5
Hodmi
Level 5

Likes

68 likes

Total Posts

454 posts

Correct Reply

53 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 5
Hodmi
Level 5

Likes

68 likes

Total Posts

454 posts

Correct Reply

53 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Hodmi
Level 5

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.