Corrupt PNG File - The PNG icon file [email protected] appears to be corrupt.

作为iOS 开发者,常遇到一个诡异的上传问题。 好不容易上传了一个app, 第一时间收到的邮件不是 ready for sale ,而是 “The PNG icon file [email protected] appears to be corrupt”. 内容如下:
'Dear developer,

We have discovered one or more issues with your recent binary submission for "悠悠电台". Before your app can be reviewed, the following issues must be corrected:

Corrupt PNG File - The PNG icon file [email protected] appears to be corrupt.

Once these issues have been corrected , go to the Version Details page and click Ready to Upload Binary. Continue through the submission process until the app status is Waiting for Upload and then use Application Loader to upload the corrected binary.

Regards,

The App Store team'



解决这个问题,有两种方法:

1.  只需把 Compress PNG files 设置项由 “Yes” 改为“No”。 示意图如下:

               (1)Project > target > Build Settings > Show All > first item under the Packaging header
                (2)search  关键字  “pack”
               (3) 切换  Compress PNG Files to NO

Corrupt PNG File - The PNG icon file [email protected] appears to be corrupt. - 悠悠音乐广播 - 悠悠音乐广播iPhone/iPad版
  以上这种方法,虽然可行, 当这不是apple的初衷。  更佳解决方案是从源头上解决:

  在从photoshop 导出这些图标时, 不要勾选 交错(Interlaced )选项, 这样生成的图片,是没问题的。 同时, 在Xocde 工程设置中, 确保 PNG compression 处于 enabled 状态。

你可能感兴趣的:(ios)