Xcode 6 automatically adds unsupported compile rights

I have an app on the Mac App Store that has been built using the following permissions for a year without any problem:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.ubiquity-container-identifiers</key>
    <array>
        <string>$(TeamIdentifierPrefix)com.example.myapp</string>
    </array>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.files.bookmarks.app-scope</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.print</key>
    <true/>
</dict>
</plist>

      

Now when I try to upload my first build using Xcode 6, I got some strange errors from iTunes Connect. It basically says:

Invalid Code Signing Entitlements - Your application bundle signature
contains code signing entitlements that are not supported on Mac OS X; this
may happen if your Mac OS X project was ported from iOS. Please check your
Xcode project code signing entitlements configuration, and remove any
unneeded entitlements.

Specifically, value "development" for key "com.apple.developer.aps-environment" is not supported.
Specifically, key "com.apple.developer.icloud-container-environment" is not supported.

      

The thing is, I cannot find references to these rights inside my project. But when I check the Binary and Entitlements window in the orgnizer, I see that Xcode has added them to my requested permissions.

Where do the rights come from and how to solve the problem?

+3


source to share


1 answer


In particular, the value "development" for the key "com.apple.developer.aps-environment" is not supported.

This means that you are using a provisioning profile that is configured for "development". For push notifications to work, you need to use the "distribution" distribution profile. You can use Ad Hoc if you are not ready for app store distribution.

You said it's been over a year now. You may have had the correct provisioning profile and it has now expired.



In particular, the key "com.apple.developer.icloud-container-environment" is not supported.

ICloud has some changes in Yosemite. You may need to change your App ID in the Developer Portal and make sure your settings are compatible with the OS X version you are targeting. After editing the Application ID, you will need to create a new provisioning profile for this Application ID.

You can also find and edit most permissions in Xcode 6 by selecting a project in the project navigator, then selecting a target and going to the Features tab.

+3


source







All Articles