bblanchon / pdfium-binaries

📰 Binary distribution of PDFium
908 stars 195 forks source link

feat: add action step to build macOS universal library #89

Closed buehler closed 2 years ago

buehler commented 2 years ago

Hey @bblanchon!

I'm really happy to use your prebuilt binaries! Since you provide a way to create universal mac binaries, I thought, it would be nice to create the universal lib as well.

This should be the first PR ;-)

My goal is to create a cocoapod for the macos/ios targets, such that the native lib with its headers can be used in XCode as well.

Regards Chris

buehler commented 2 years ago

Addition: obviously, I'm not capable to create a CocoaPod with the .dylib inside. I tried for a long time now, and I don't get, how the Apple stuff works.

Maybe someone can enlighten me.

The ultimate goal would be: create a flutter plugin (ffi plugin) that references all the dynamic libraries that are created here. With linux/windows/android, this is no problem, I just insert/copy the lib into the correct position and voilà, it works. However, Apple - as always - does not correctly copy/load the dylib. I used a static lib created in another github repo for the apple case, but this seems kind of a bummer.

It would be cool to create a cocoapod that creates a correct wrapper around the dylib of this repository so people can reference it directly in XCode or use it as a cocoapod dependency.

bblanchon commented 2 years ago

Thanks, @buehler! I'm swamped right now, so I'll probably need a few days before merging this PR.

Meanwhile, maybe @TcT2k can give you some insight about this CocoaPod issue.

bblanchon commented 2 years ago

I had to rewrite the PR almost from scratch, sorry. You can find the new build artifact here: https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-mac-univ.tgz