<div><div dir="auto">try the -r flag which is for prelinking. you can see that in the .mk file</div><div dir="auto"><br></div><div dir="auto">And of course a debug version contains tons of symbols in order for the debugger to be able to do its work.</div><div dir="auto"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div>iOS has allowed dylibs since iOS 8 and the introduction of Swift. In fact you can't produce a static lib with Swift, only a dylib.</div><div>For our Pdfium wrapper we produce a static lib out of the Pdfium code itself, and link that in a framework project with the swift wrappers, to produce a dylib which is a swift module that can be imported into an app. Beside the linking benefits this then gives you a nice encapsulated library that is easy to consume from swift.</div><div></div></div></blockquote><div dir="auto">that was my first attempt but the apple developers said no, will try to scan through the doc again.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div>If I have time over the next couple of days I'll have a go at creating a framework to see if it does actually behave as I expect.</div><div></div></div></blockquote><div dir="auto">or a lot easier simply change the .mk to build a .dylib instead of the .a thr .o file within both should be identical.</div><div dir="auto"><br></div><div dir="auto">rgds</div><div dir="auto">jan i</div><div dir="auto"><br></div></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">Sent from My iPad, sorry for any misspellings.</div>