I followed the Apple trouble shooting guide and found that correct entitlements are there in the provisioning profile which is used when server build is sent to the codenameone. The entitlements in my provisioning profile are given below:
<key>Entitlements</key>
<dict>
<key>application-identifier</key>
<string>KF4G994665.com.nvsoft.s2pay</string>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.default-data-protection</key>
<string>NSFileProtectionComplete</string>
<key>get-task-allow</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>KF4G994665.*</string>
</array>
</dict>
<key>ExpirationDate</key>
<date>2014-04-10T07:26:20Z</date>
<key>Name</key>
<string>S2Pay App Store Dev Profile</string>
However, the ipa file which I receive from the codenameone build server does not have any APS entitlements and it only shows the following:
Nirmal-Juthanis-MacBook-Pro-4:10April2013 nirmal$ codesign -d --entitlements :- "Payload/S2PayApp.app"
Executable=/Users/nirmal/tmp/10April2013/Payload/S2PayApp.app/S2PayApp
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>KF4G994665.com.nvsoft.s2pay</string>
<key>keychain-access-groups</key>
<array>
<string>KF4G994665.com.nvsoft.s2pay</string>
</array>
<key>get-task-allow</key>
<true/>
</dict>
</plist>
Somehow the codenameone build server does not seem to be adding the APS entitlements in the ipa file. Can you please check that?
Thanks,
Nirmal