Imported from the Apple Support Forums via the Wayback Machine 🔗
if i put png files into the bundle, all of them are modified and i cannot used libpng for my purposes, i have tried to use CGImage, but it seems impossible to create a Context with AlphaLast bit, which is crucial for me. Thanks.
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have the same exact problem and was only able to come up with two solutions:
1) write a custom parser that can deal with the format used by the iPhone
2) just change the file extension to something different than .png
I went with 2) for now as it is obviously much less work. There should definitely be some kind of option in XCode to exclude certain png files to be converted.
0
Ramzez·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Interesting, i have tried changing the extension of the files from png to something else, but it still changed the files, will try again.
0
stony74·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Oh wait... I've also created a separate "Copy Files Phase" for the PNGs which copies them into a subdirectory of the application bundle. Maybe the combination of this and the changed extension does the trick...
0
Ramzez·
Imported from the Apple Support Forums via the Wayback Machine 🔗
can you give an example what did you put in the script? i am very new to the xcode. thanks!
0
Xanthos·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Annoying behavior on the part of Xcode. I change the extension and then copy the files elsewhere at runtime.
0
Ramzez·
Imported from the Apple Support Forums via the Wayback Machine 🔗