Reducing Emgu.CV DLL File Size

Post your iOS related question here.
Post Reply
jkanalakis
Posts: 3
Joined: Wed May 02, 2018 6:25 pm

Reducing Emgu.CV DLL File Size

Post by jkanalakis » Thu May 03, 2018 5:34 pm

Is there a good strategy for reducing the file size of the Emgu.CV DLL? My Emgu.CV.World.IOS.dll file is over 260MB, pretty heavy for an iOS app.

canming
Site Admin
Posts: 1011
Joined: Thu Feb 28, 2008 4:16 pm

Re: Reducing Emgu.CV DLL File Size

Post by canming » Fri May 04, 2018 10:19 am

The development dll is huge because it contains the native binary for all supported CPU architectures, including those for simulators.

However, if you are building an IPA for app store submission, and is only targeting ARM64 devices, you can select just ARM64 architecture. When the IPA is build, the compiler will strip out all the binary that are not used. It will significantly reduce the final size of the IPA. Depends on the number of functions you used, if you are only targeting a single ARM64 architecture, the final IPA size should be some where around 30-40MB. Please give it a try.

Post Reply