2015-06-21 85 views
1

我有一個問題,通過應用程序加載器上傳我的應用程序。我在Xamarin Studio中使用了Archive發佈功能,並在應用程序加載器中打開了創建的ipa。然後出現以下錯誤:ios + icloud:com.apple.developer.ubiquity-container-identifiers值不允許

錯誤ITMS-90164:「無效的代碼簽名授權。應用程序包簽名中的權利與配置文件中包含的權利不匹配。根據配置文件, bundle包含一個不允許的鍵值:'[「iCloud.info.mycompany.myapp」]''爲'Payload/MyApp.app/MyApp'中的鍵'com.apple.developer.ubiquity-container-identifiers''「

我的應用程序使用的是cloudkit,所以我添加了一個icloud容器並將它與開發人員門戶中的應用程序ID相關聯。

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> 
... 
+0

我收到了同樣的錯誤。如果您找到解決方法,請告訴我。 – Dpedrinha

回答

0

這實在是煩人! 訣竅是打開項目的配置文件並檢查字符串是什麼。 但是,如果它是一個應用程序,你試圖submite到AppStore,你應該只使用與生產相關的字符串。 例如,我的權利的一個是這樣的一個:

<?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.icloud-services</key> 
    <string>CloudKit</string> 
    <key>com.apple.developer.icloud-container-environment</key> 
    <array> 
     <string>Production</string> 
    </array> 
    <key>com.apple.developer.icloud-container-identifiers</key> 
    <array> 
     <string>iCloud.[MY BUNDLE]</string> 
    </array> 
    <key>com.apple.developer.ubiquity-container-identifiers</key> 
    <array> 
     <string>iCloud.[MY BUNDLE]</string> 
    </array> 
    </dict> 
</plist> 

哪裏[MY BUNDLE]就像br.com.riandesign.myproject