[Haskell-iPhone] Fat binaries on iOS Target

Carter Schonwald carter.schonwald at gmail.com
Wed Dec 25 13:46:03 UTC 2013


You need to make sure every lib is built with split objs, not just the
final application.  Did you try it that way?   You could also try to limit
the amount of Inlining in your application too

On Wednesday, December 25, 2013, Joe wrote:

> Hi,
>
> I’m asking similar question on haskell-cafe group, but I think it’s more
> appropriate to ask here since it’s iPhone related. Please forgive my double
> post.
>
> I have been trying to statically link Pandoc packages to iOS application
> and I want to say that what have been done so far as explained in
> https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS is
> great! I have finally successfully use Pandoc library in iOS app, but
> there’s an issue that the final app binary is *more than 50MB* when using
> Pandoc library. It’s around 5MB for simple haskell library. And without
> using Haskell, it’s around 100kb.
>
> Is it possible to strip the executable binary? I read that stripping is
> not possible using xcode strip. I also try to add -split-objs flag, but
> it’s not working either.
>
> Any idea? Is this a known issue?
>
> Thanks for making Haskell work on iOS!
>
> Best regards and merry christmas,
> Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20131225/28a4adec/attachment.html>


More information about the iPhone mailing list