Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate MuPDF in iOS project

Tags:

ios

mupdf

How can I integrate the mupdf library into an existing iOS project? I can run the provided source on my device and simulator, but I can't seem to manage to add it to my project correctly. I tried linking and importing the compiled static libraries but it only works in the simulator, even if I use lipo to build a fat library with all the architectures (armv7 armv7s arm64 i386). In this case the error is

file was built for archive which is not the architecture being linked (armv7s)

Ideally i would like to have it added as a submodule for ease of upgrading, I tried that too, but i can't get xcode to recognize where the built libraries are.

like image 408
sPoz Avatar asked Feb 18 '14 16:02

sPoz


2 Answers

I was able to generate and integrate the MuPDF library for all architectures. I wrote a small step-by-step tutorial on this post.

I hope it will help you ! Cheers

like image 87
Kevin Delord Avatar answered Sep 19 '22 17:09

Kevin Delord


The easiest way is probably to use the MuPDF CocoaPod. There is an example application based on that pod.

like image 38
JosephH Avatar answered Sep 22 '22 17:09

JosephH