如下图,即使图片尺寸不规范,xcode5也可以正常预览(这里我提供的尺寸是57*57, 而需要的是120*120)
但编译运行失败,报的错是:
Images.xcassets: error: The app icon set named "AppIcon" did not have any applicable content.
Images.xcassets:./AppIcon.appiconset/[iphone][60x60][2x]: warning: AppIcon.appiconset/Icon.png is 57x57 but should be 120x120.
Images.xcassets:./AppIcon.appiconset/[iphone][60x60][2x]: warning: AppIcon.appiconset/Icon.png is 57x57 but should be 120x120.
1
2
|
Images.xcassets: error: The app icon set named "AppIcon" did not have any applicable content.
Images.xcassets:./AppIcon.appiconset/[iphone][60x60][2x]: warning: AppIcon.appiconset/Icon.png is 57x57 but should be 120x120.
|
遇到这种错误需要按规范替换图片资源文件即可。
iOS7要求的图标尺寸与iOS6等老版本比较有些变化,包括iPhone和iPad,尺寸都有增加,各图标尺寸具体数值可参见官网的iOS App编程指南。