Compress Png Files missing from build settings

两盒软妹~` 提交于 2020-01-02 00:53:12

问题


I am building an app which has quite a few images in, therefore I have crushed them all using ImageOptim to help decrease the size of my .IPA. How ever the size of my app has not changed at all.

I have looked on their website and they say to turn off Compress Png Files in the Build Settings under Packaging. However that option is not there. I have tried manually adding it into my project.pbxproj but it gets listed under the User Defined section and does not turn it off.

I have also tried searching in the Build settings (My main target is selected).

So my question is... how can I add Compress Png Files into my build settings?


回答1:


It might sound mind blowing, but please read it to the very end.

  1. Try dragging and dropping a dummy png file to your project navigator, then select like "Add, Copy if Needed" and the option will appear in the Packaging section. But, I guess, this is not your case.
  2. It looks like you have all your png's contained in an asset catalog rather that just lying around. For that case, I guess, you might want to play around with this:



回答2:


You need to Just Search in Build Setting png And CopyPNG File - Packaging is Searched And The Section Have Option is Compress Png File is The Default value is Yes You will change value NO it Means your png Files is Compressed Bellow is the Screen Shot




回答3:


If you change the format of the file to png, the error shows up all the time for the assets when you try to use it. It's better to find the original png file or save the file as a png file with an image editor.




回答4:


It looks like the path of the file has been removed or relocated you can remove it from here as well check the picture below:



来源:https://stackoverflow.com/questions/33082838/compress-png-files-missing-from-build-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!