Images in IPA from PhoneGap Build are all transparent PNGs

  • 1
  • Problem
  • Updated 6 years ago
When I build my app (ID #891379), the resulting Android app has the correct icons in the res/ folder of the resulting APK.

In the iOS IPA file, however, the images in the Payload/AppName/ folder are all transparent PNGs of the same sizes I provide in my config.xml (screenshot attached).

The images are present in my source and the icon does render on my iOS devices just fine, but I'd like to populate the PNGs in Payload/AppName/ to enable previewing of apps in our internal app repository.

Any ideas? I've seen a lot of ideas and nothing has yet worked.
Photo of Ben Tiedt

Ben Tiedt

  • 2 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Shazron

Shazron, Developer Level 42

  • 37 Posts
  • 2 Reply Likes
Xcode "optimizes" your PNGs for use on the device for performance reasons:
http://iphonedevelopment.blogspot.com...
Photo of Ben Tiedt

Ben Tiedt

  • 2 Posts
  • 0 Reply Likes
Face meet palm. Thanks.

Fortunately, there are plenty of libraries to convert iOS optimized PNGs to standard PNGs again.