objective-c - Xcode 6 在编译时自动添加不受支持的权利

标签 objective-c xcode macos

我在 Mac App Store 中有一个应用程序,它是使用以下权利构建的,一年多来没有任何问题:

<?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>

现在,当我尝试使用 Xcode 6 上传我的第一个构建时,我从 Itunes Connect 收到了一些奇怪的错误。它说的基本上是:

Invalid Code Signing Entitlements - Your application bundle's 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's 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.

问题是,我在我的项目中找不到对这些权利的任何引用。但是,当我检查组织器中的“二进制和权利”窗口时,我看到 Xcode 已将这些添加到我请求的权利中。

权利从何而来,如何解决?

最佳答案

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

这表明您正在使用为“开发”设置的配置文件。要使推送通知正常工作,您需要使用“分发”配置文件。如果您还没有准备好分发到应用商店,您可以使用 Ad Hoc。

你确实说已经一年多了。也许您拥有正确的配置文件,但现在已过期。

Specifically, key "com.apple.developer.icloud-container-environment" is not supported.

优胜美地 iCloud 有一些变化。您可能需要在开发人员门户中编辑您的 App ID,并确保您的设置与您的目标 OS X 版本兼容。编辑 App ID 后,您需要为该 App ID 生成新的配置文件。

您还可以通过在项目导航器中选择项目然后选择目标并转到“功能”选项卡来查找和编辑 Xcode 6 中的大部分权利。

关于objective-c - Xcode 6 在编译时自动添加不受支持的权利,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25927294/

相关文章:

multithreading - 在 OSX 上创建实时线程

java - 在 Mac 上使用更新的类覆盖 Java 系统库

iPhone 图片幻灯片

ios - 滚动回到顶部时显示导航栏。操作系统

objective-c - 将非本地对象的地址传递给 __autoreleasing 参数进行写回

iphone - NSString 转 NSArray

python - 错误 2003 无法连接到 'localhost' PyMySQL 上的 MySQL 服务器

iphone - 在 iOS 7 中移动状态栏

ios - iOS开发中如何使用离线缓存?

ios - CGImage导致内存泄漏