facebookarchive / xcbuild

Xcode-compatible build tool.
Other
2k stars 190 forks source link

actool does not support PDF files in asset catalog #144

Open gfosco opened 8 years ago

gfosco commented 8 years ago

Fastest way to see this is to create a new tabbed application, which comes with a few PDF files.

Fails with: / com.apple.actool.errors / error: unknown file type

grp commented 8 years ago

This may be hard to support not on OS X, but even there I'm not sure what the format should look like. Maybe it should just be raw PDF data inside, which would be pretty easy.

Do you have a sample compiled asset catalog (Assets.car) with a PDF in it? Would be useful to take a look.

grp commented 8 years ago

I tried compiling one and it doesn't seem to use the PDF pixel format, rather showing as bitmap data. However, there seems to be a new header in the way of extracting it, so not sure what it looks like exactly.