2015-07-03 28 views
1

我已經爲我的應用程序構建了Apple Watch支持。但我得到了以下錯誤:很多錯誤,同時推送Apple Watch支持iTunes Connect的應用程序

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx/_WatchKitStub/WK' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html%23//apple_ref/doc/uid/10000123i-CH101-SW1 for information on the iOS app bundle structure." 
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker." 
ERROR ITMS-90455: "The binary you uploaded was invalid." 
ERROR ITMS-90499: "Missing Apple Watch Extension. The application 'xxxxx' is missing its corresponding Apple Watch extension." 
ERROR ITMS-90508: "Invalid Info.plist value. The value for the key 'DTPlatformName' in bundle xxxx is invalid." 

我試圖解決這個問題,而是一個新的項目,我得到了同樣的錯誤的。這是怎麼回事?

+0

將Apple Watch支持添加到我的應用程序並嘗試首次上載到App Store後,我收到了完全相同的6個錯誤。我猜這是因爲使用Xcode 6.4時,使用舊API進行的初始項目設置。你找到一個簡單的方法來解決這個問題嗎? – ScottyB

回答

0

我有完全相同的一組錯誤,並發現我通過大寫產品文件夾中所有.app和.appex文件的名稱的第一個字母來造成它們。在我的應用程序擴展程序,WatchKit擴展程序和WatchKit應用程序中,在plists(構建設置)的各個位置中名稱仍然是小寫字母。在將產品名稱和Info.plist文件設置的首字母大寫後,我能夠提交到App Store。

請注意,我的主iPhone/iPad應用程序需要始終保持小寫,即com.cambuilt.camtinerary。

+0

我想我也必須在創建存檔之前將我的目標從我的WatchKit應用程序更改爲主iPhone/Pad應用程序。 – CamQuest

+0

由於iTunes Connect會將我的應用程序列爲「無效二進制文件」,但是已經爲Apple創建了支持通知單並且會通知您響應,所以仍然沒有解決該問題。 – CamQuest

+0

從主應用程序的副本包中刪除Apple Watch應用程序。然後構建應用程序。固定爲我。不知道爲什麼,但它的工作原理,並由Apple檢查。 – Dennisch

1

我昨天剛有同樣的問題,原因和解決辦法很簡單:

我忘了更改關注應用和擴展的配置文件分佈狀況。改變之後,錯誤消失了。

相關問題