So this is what I did

 
cordova create test
cd test
cordova platform add ios
cordova plugin add org.jboss.aerogear.cordova.push
cd platforms/ios/
pod install

Then I get the following error, this is because the cordova project has the OTHER_LDFLAGS set and pods wants to set it as well:

[!] The target `HelloCordova [Debug]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

To solve this I add the $(inherited) flag to the OTHER_LDFLAGS I did it in xcode under build settings, but maybe you can also do it in directly into the project.pbxproj file.

Then I run pod install again and the warning is no longer there. And executing a cordova build works after that.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira