I have a problem uploading my app via Application Loader. I used the Archive for publishing function in Xamarin Studio and opened the created ipa in the application loader. And then I got the following error:
ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: '[ "iCloud.info.mycompany.myapp" ]' for the key 'com.apple.developer.ubiquity-container-identifiers' in 'Payload/MyApp.app/MyApp'"
My app is using the cloudkit, so I added a icloud container and associated it with the app id in the developer portal.
entitlements.plist:
...
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.info.mycompany.myapp</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
<string>CloudKit</string>
</array>
...