2016-06-26 76 views
1

當我試圖上傳我的應用程序在Mac App Store中,我得到的錯誤 -應用程序組錯誤

iTunes Store operation failed. 
Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on Mac OS X. Specifically, value '[group.MyCompany.MyProject]' for key 'com.apple.security.application-groups' in 'com.MyCompany.mac.MyProject.pkg/Payload/MyProject.app/Contents/MacOS/MyProject' is not supported. This value should be a string or an array of strings, each starting with your TEAMID followed by a dot '.' . 

不過,我看到的是,共享組必須跟團開始。前綴 - 那麼正確的方法是什麼?

回答

2

不,您必須從您的開發團隊ID開始。

The value for this key must be of type array, and must contain one or more string values, each of which must consist of your development team ID, followed by a period, followed by an arbitrary name chosen by your development team

請檢查下面的示例從蘋果開發頁面。
https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW19

<key>com.apple.security.application-groups</key> 
    <array> 
     <string>DG29478A379Q6483R9214.HolstFirstAppSuite</string> 
     <string>DG29478A379Q6483R9214.HolstSecondAppSuite</string> 
    </array> 
+0

是的,我已經修復它(舊線程...),但無論如何感謝。 – Roee84

2

group.identifier用於iOS應用組名稱; TEAMID後跟一個點,然後名稱(如錯誤消息所述)用於Mac App組名稱。

還請記住,這必須是您的開發團隊ID;不要使用$(TeamIdentifierPrefix),正如Xcode所建議的那樣。

由於某些原因,$(TeamIdentifierPrefix)構建時變量在歸檔項目時未能正確解析。

使用傑裏的應用程序組名稱應該工作。