Skipping the 'CompressResources' build step for Xcode iPhone apps

后端 未结 5 790
遥遥无期
遥遥无期 2020-12-30 09:03

Is it possible to set an iPhone Xcode project to skip the \'CompressResources\' build step?

Specifically, I want to skip the stage where it runs pngcrush on all of m

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 09:29

    If you look at the build output you'll see that the CompressResources step runs the script /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/iphoneos-optimize. This appears to be just a shell script that runs pngcrush and compiles plists into binary format. You could probably modify this script to not run pngcrush.

    Note that someone in this thread noticed that if they did not run their icon file through pngcrush it wasn't showing up on the phone.

    Interestingly, the version of pngcrush in the directory of the script has a -iphone argument. Anybody know if this is standard or something Apple just ships with their build of it?

提交回复
热议问题