If you are trying to compile your IPA with aps-environment key in entitlement.plist tags in application.xml file as shown in the example below and push notification service is not enabled in provisioning profile, you will get ‘application verification failed‘ error.
Example: Entitlements tag has been added in application.xml file but the push notification service is not enabled in provisioning profile.
<Entitlements><![CDATA[
<key>aps-environment</key>
<string>development</string>
]]>
</Entitlements>
Solution: Simply comment the above section of the code in application.xml or else add the feature in the provisioning profile. You will be able to rectify this error and compile your project.