Hi,
We are working with a rather large library. We compile this library for different targets and put it into a fat library with Lipo.
We have the source code of this library, but as it's provided to us, we generally only create a Release version of this library.
Recently, we have been trying to find a bug in this library, and for that, we tried to build it as a Debug version. But to our surprise, the library built fine, but lipo failed to combine the libraries into a fat library. Saying "Can't write to target file ...".
It turned out that the filesize of the Debug version of the library is over 2Gb (about 2.1Gb), and we are guessing that lipo cannot handle file sizes larger than 2Gb. Although clang can create it just fine.
Let's assume that we cannot split the library into smaller libraries (I'm looking for a short-term solution)... What else can we do, other than strip a 100Mb or more of symbols from this file?
I was thinking about taking the source of lipo and make it work for file size > 2Gb. But are there any other suggestions?