今天提交應用,被打回來了,郵件描述以下:
iPhone 5 Optimization Requirement
- Your binary is not optimized for iPhone 5. New iPhone apps and app updates submitted targeting iOS 6 and above must support the 4-inch display on iPhone 5 and must include a launch image with the -568h size modifier immediately following the <basename> portion of the launch image's filename. 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
and
iOS App Programming Guide
.
主要緣由是沒有使用png的圖片做爲啓動頁,一直以來Apple都要求用png的圖片來做爲啓動頁,可是png相對於jpg來講要大多了,爲了減小應用體積,之前的作法是能夠經過info.plist的設置來使用jpg的:
如今這種方法已經失效了,編譯的時候和之前同樣,都是順利經過的,但當你打包應用,上傳到iTunes Connect後,Apple會再次檢查,這時候就會被發現沒有使用png圖片做爲啓動頁,提示Invalid Binary,並經過郵件通知你。
因此,最後仍是要老老實實地按照Apple的要求,使用png圖片做爲啓動頁…