這兩天提交應用時遇到不少問題,其中特別惱人的一個是:明明二進制已經 Archive、Validate、Distribute 都跑完,iTunes Connect 上卻顯示「Missing Screenshot」。奇怪,我明明已經上傳了 5 張「iPhone and iPod touch Screenshots」了,到底是怎麼回事?
上網搜尋後發現,原來在 iPhone 5 上市後,蘋果曾發信通知開發者(很尷尬,那封信寄到了公司副總的信箱,我根本看不到),內容大意是:
"If you deliver a new app binary that takes advantage of the new screen size for iPhone 5 or iPod touch (5th generation) without screenshots in the new dimensions, the status of your app will change to Missing Screenshot."
最直接的辦法,就是在「iPhone 5 and iPod touch (5th gen) Screenshots」欄位裡補上幾張符合新尺寸的截圖。如果你能這麼做,那恭喜,下面的內容就不用看了。
但如果你跟我一樣倒霉——應用的截圖是美工精心製作的介紹圖,沒辦法用「Home + Lock」鍵咔嚓一聲截出來,偏偏美工又剛好請病假——那就只好繼續往下挖了。
信中提到「takes advantage of the new screen size for iPhone 5」,那到底怎樣才算「充分利用 iPhone 5 的新螢幕尺寸」?翻到某個頁面找到說明:
"If your binary indicates that your app will run on the 4-inch Retina display, you are required to upload at least one of these screenshots."
這跟前面根本是同一個意思嘛……那什麼又叫「indicate that your app will run on the 4-inch Retina display」?繼續找。
終於在另一個頁面找到關鍵一句:
The only thing that indicates whether or not your app supports the 4-inch screen is whether you have a "Default-568h@2x.png" file or not. If you haven't added that, your app won't natively support the 4-inch screen (which is fine!) and you don't need to change any other settings or provide other screenshots.
原來問題就出在這裡!之前編譯時曾跳出一個提示,說我「Missing Retina 4 launch image」,問我要不要 add this image。當時為了消除這個警告,手賤點了「Add」,結果專案裡就多了一張全黑的 "Default-568@2x.png"。就是這張圖,讓系統誤以為我啟用了 iPhone 5 的 4 吋螢幕特性。
果斷把它刪掉,然後重新走一遍 Archive → Validate → Distribute,再到 iTunes Connect 查看狀態,哈哈,終於變成「Waiting for Review」了!
所以下次遇到 Missing Screenshot,別急著找美工趕工,先檢查一下專案裡是不是不小心多了一張 Default-568h@2x.png 吧。