看起來XCode6沒有在Parse SDK(我使用最新版本1.4.1)內簽署資源。解析SDK在爲AppStore構建時會導致授權資源錯誤
實際的存檔/生成工作正常。事實上,我也可以通過這個過程分發AdHoc beta版本(我的測試人員可以從HockeyApp安裝)。直到我嘗試提交給AppStore時,問題纔會發生。我切換到分佈曲線&證書,存檔,然後當我從主辦單位按提交按鈕我得到這個:
當我點擊查看日誌,我轉到了取景器路徑/private/var/folders/s_/9v750_vs1ql7ftn5zq8cn9y80000gn/T/
。該文件夾包含3個文件,其中兩個有什麼新鮮事,但其中一個(IDEDistribution.standard.log
)包含一個有趣的錯誤在解析指向:
2014-09-24 04:34:05 +0000 [MT] Beginning distribution assistant for archive: Aftermath-iOS[APPSTORE], task: Submit
2014-09-24 04:34:05 +0000 [MT] Automatically selecting the only availaable distribution method <IDEDistributionMethodiOSAppStoreDistribution: 0x7fb300688930>
2014-09-24 04:34:06 +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb2edd3f190:'/Users/zane/Library/Developer/Xcode/Archives/2014-09-23/Aftermath-iOS[APPSTORE] 9-23-14, 9.34 PM.xcarchive/Products/Applications/Aftermath.app/Parse.framework/Versions/A'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/zane/Library/Developer/Xcode/Archives/2014-09-23/Aftermath-iOS[APPSTORE] 9-23-14, 9.34 PM.xcarchive/Products/Applications/Aftermath.app/Parse.framework/Versions/A" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo=0x7fb2ede17c40 {NSLocalizedDescription=Item at "/Users/zane/Library/Developer/Xcode/Archives/2014-09-23/Aftermath-iOS[APPSTORE] 9-23-14, 9.34 PM.xcarchive/Products/Applications/Aftermath.app/Parse.framework/Versions/A" did not contain a "archived-expanded-entitlements.xcent" resource.}
2014-09-24 04:34:09 +0000 [MT] Canceled distribution assistant
注行約archived-expanded-entitlements.xcent
是從構建目標丟失。