copypng failed with exit code 1

a 夏天 提交于 2019-12-08 14:35:55

问题


I am getting the following error when building my iPhone application. The reddarkedge.png is right there in the supporting files folder.

/Users/azamsharp/Desktop/UltraCam/UltraCam/TCam/reddarkedge.pngCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng failed with exit code 1

Even if I remove the reddarkedge.png from the project it still gives me the same error.

UPDATE SOLUTION:

Turns out I had to hard delete them.


回答1:


When you say "Even if I remove the reddarkedge.png from the project" when you remove it from the Xcode file navigator does it get removed from the copy bundle step of the target build process? If not maybe manually delete it there as well?

You could also try highl

You might also try opening the XML project file in a text editor and removing the reference by hand. Make sure to have a backup in case you have problems though.

Best of luck.




回答2:


Had the sameproblem with the CopyPNG error. Place the image in your project again and use the program ImageOptim over your images, this solved the problem. Maybe it will also solve your problem.

Or

Check the "Copy bundle resources" build stage to see if there are any missing files (png, txt, plist, etc.)




回答3:


Most of the time this happens when you missed to check the Copy items if needed while adding the images.




回答4:


I actually referenced the app icon image from Desktop.But, accidentally I deleted that image and got this error. After that I have added the image in the Desktop with same name and build got succeeded. So please make sure that, if you are missing something like this. Hope this will help somebody!!!



来源:https://stackoverflow.com/questions/11867278/copypng-failed-with-exit-code-1

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