整理自己以前記錄的筆記發(fā)現(xiàn)可以整理一下分享出來,由于問題是自己剛工作時(shí)候一點(diǎn)點(diǎn)遇到的帮碰,也算是一路踩坑走過來的,希望可以幫到有緣人拾积,如有不足殉挽,煩請指正,感謝拓巧!
提交APP遇到的錯(cuò)誤(1)
打包上傳APPStore Xcode報(bào)以下錯(cuò)誤:
Missing iOS Distribution signing identity for XXXXXX
解析:
查看鑰匙串中的證書后發(fā)現(xiàn)斯碌,Develop證書和Distribution證書都提示“此證書的簽發(fā)者無效”。
什么是AppleWWDRCA證書肛度?
搜索資料發(fā)現(xiàn)傻唾,原因是AppleWWDRCA (Apple Worldwide Developer Relations Certification Authority) 證書過期了。
AppleWWDRCA證書實(shí)際上就是對iOS證書(即Develop證書和Distribution證書)的授權(quán)認(rèn)證贤斜,其公鑰用于解密認(rèn)證證書的可靠性策吠。
iOS以及Mac OS X系統(tǒng)(在安裝Xcode時(shí))將自動(dòng)安裝AppleWWDRCA.cer(Apple Worldwide Developer Relations Certification Authority)這個(gè)中間證書(Intermediate Certificates)。
問題解決
需要更新AppleWWDRCA證書瘩绒。
1.https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下載最新AppleWWDRCA證書猴抹,雙擊安裝。
2.打開鑰匙串锁荔,選擇登錄蟀给,然后選擇下面的證書。
3.選擇桌面左上角的顯示→顯示已過期的證書阳堕。
4.這時(shí)候你會(huì)發(fā)現(xiàn)一個(gè)過期的“WWDR Certificate”(Apple Worldwide Developer Relations Certification Authority)跋理,刪除它。
有的在System的那一欄也有這個(gè)過期的“WWDR Certificate”恬总,也一并刪除它前普。
5.再回頭點(diǎn)擊Develop證書和Distribution證書,不出意外他們都變成“此證書有效”了壹堰。
注意: 如果再回頭點(diǎn)擊Develop證書和Distribution證書的時(shí)候發(fā)現(xiàn)還沒有變化的話 把證書里面的其他的無效證書全部刪除拭卿,然后還不行的話需要重啟電腦,然后打開鑰匙串看一下是否變成“此證書有效”了贱纠。 如果還沒有的話重新按上述步驟查找刪除一遍峻厚,可能是由于沒有刪除干凈的原因。徹底的刪除完以后才會(huì)變成有效的證書谆焊。惠桃。。。
ps: 有時(shí)候需要關(guān)機(jī)重啟
提交APP遇到的錯(cuò)誤(2)
ERROR : "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12'."
解析:
添加對應(yīng)的啟動(dòng)圖片
http://www.cnblogs.com/liufan9/p/3136064.html
參考這設(shè)置相應(yīng)的啟動(dòng)圖文件
提交APP遇到的錯(cuò)誤(3)
ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch story board in bundle 'xxxx'."
ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. Found 'UIInterfaceOrientationPortrait' in bundle 'xxxx'."
解析:
這是因?yàn)閕os9 iPad 的分屏適配所致辜王。
解決方法有兩個(gè):
1.偷懶方法:移除app對iPad Multitasking的支持劈狐,具體做法如下圖
2.適配iPad Multitasking
可參考資料如下:
Mysteries of Auto Layout, Part 1
What's New in Storyboards
Implementing UI Designs in Interface Builder
Getting Started with Multitasking on iPad in iOS 9
Optimizing Your App for Multitasking on iPad in iOS
提交APP遇到的錯(cuò)誤(4)
ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value '*' for key 'com.apple.developer.associated-domains' in 'Payload/telewiki.app/telewiki' is not supported."
解析
檢查工程文件中,TARGETS 下的各個(gè)擴(kuò)展中的Capabilities 是否和 AppId中的配置一致
打開開發(fā)者中心 - 查看AppIDs誓禁,查看是否打開了其他沒有用到的功能懈息,將其關(guān)閉肾档,然后再去重新編輯一下配置文件Provisioning Profiles 下載下來摹恰,雙擊,然后重新打包上傳即可怒见。
提交APP遇到的錯(cuò)誤(5)
解析:
ERROR ITMS-90101: 這個(gè)問題是appstore上支持ipad&iphone俗慈,但是項(xiàng)目只支持iphone的,所以添加一下ipad的支持遣耍,增加對應(yīng)的icon與啟動(dòng)圖圖片即可闺阱,并且更改general -> depolyment info -> Devices的設(shè)置選擇 :由單獨(dú)的iphone改為universal
ERROR ITMS-90717: 這個(gè)問題是因?yàn)樾掳娴膞code增加了1024 * 1024的icon圖標(biāo),所以看下icon中對應(yīng)的1024 * 1024的圖標(biāo)的圖片詳情舵变,看下 alpha通道 :否
注意:一定要設(shè)置為否酣溃,如果不是,可以圖片導(dǎo)出 - 不勾選下面的alpha通道 (或者讓UI重新切圖導(dǎo)出)
提交APP遇到的錯(cuò)誤(6)
error ITMS-90475: “Invalid Bundle. ….