問題描述贾富,在xcode8打包沒問題晦雨,但是在xcode9打包的時候就報這個錯
ERROR ITMS-90096:"Your binary is not optimized for iPhone 5 - New iPhone apps and appupdates submitted must support the 4-inch display on iPhone 5 and must includea launch image referenced in the Info.plist under UILaunchImages with aUILaunchImageSize value set to {320, 568}. Launch images must be PNG files andlocated at the top-level of your bundle, or provided within each .lproj folderif you localize your launch images. Learn more about iPhone 5 support and applaunch images by reviewing the 'iOS Human Interface Guidelines' athttps://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen."
網(wǎng)上的解決方法是需要單獨(dú)添加針對iPhone5的載入圖片势腮。關(guān)鍵點(diǎn)有三項:
1.圖片的名稱必須叫Defatult-568.png.
2.必須把圖片放在工程的根目錄下
3.圖片尺寸必須是320*568
然后在plist中添加
按照網(wǎng)上的說法依舊解決不了,折騰了半天,查看原來是自己的LaunchImage命名不規(guī)范造成的盟广,刪掉之前的LaunchImage文件废岂,重新命名在拖進(jìn)去重新打包就可以了具體命名規(guī)則: