2014-09-19 23 views
3

我在Mac App Store中的應用程序,一個已經使用了一年以下權利建成沒有任何問題:的Xcode 6會自動將不受支持的權利上編譯

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

事情是,我無法在我的項目中找到對這些權利的任何引用。但是,當我檢查組織中的「Binary and Entitlements」窗​​口時,我發現Xcode已將這些添加到我的請求權利中。

權利從哪裏來,以及如何解決問題?

+0

你有沒有解決這個問題?當XCode無效時插入'com.apple.developer.icloud-container-environment'鍵時,我遇到了同樣的問題。 – Muzza 2016-06-06 23:46:06

回答

3

具體而言,不支持關鍵字「com.apple.developer.aps-environment」的值「開發」。

這表示您正在使用爲「開發」設置的供應配置文件。要使推送通知正常工作,您需要使用「分發」預配配置文件。如果您尚未準備好分發到應用商店,則可以使用Ad Hoc。

你確實說過它已經過了一年多了。也許你有正確的配置文件,現在已過期。

具體而言,不支持「com.apple.developer.icloud-container-environment」關鍵字。

iCloud與優勝美地有一些變化。您可能需要在開發者平臺上編輯您的應用程序ID,並確保您的設置與您所定位的OS X版本兼容。編輯App ID後,您需要爲該App ID生成新的供應配置文件。

您還可以通過選擇項目導航器中的項目然後選擇目標並轉到「功能」選項卡來查找和編輯Xcode 6中的大部分權利。

+0

奇怪的是,推送通知對我的應用程序ID或我用於簽署應用程序的配置文件甚至沒有激活。我確實重新生成了所有證書並重新創建了權利文件,但我仍然遇到同樣的問題。最後我實際上下載了Xcode 5並能夠正確地簽署應用程序。 – Christoffer 2014-09-20 06:21:23

+0

問題是,如果您使用'capabilities'標記來調整您的iCloud設置,那麼它特別是Xcode 6,然後添加它後來聲稱不支持的「com.apple.developer.icloud-container-environment」權利! – 2014-09-20 13:52:15

+0

同樣的問題在這裏! Xcode增加了遊戲中心授權和獲取任務允許權限,在提交階段表示獲取任務允許OS X不支持 – 2015-01-15 09:17:59

相關問題