LibreOffice build for iOS failed

Hi. I’m trying to build Collabora for iOS following these guideline. But I have failed on the 1st step, which says:

First you need to build the LibreOffice core code for iOS. Put in your autogen.input something like this:

--enable-debug
--enable-dbgutil
--enable-werror
--with-distro=LibreOfficeiOS

and build “normally”. (Naturally, no unit tests will be run when cross-compiling LibreOffice.) Of course there is no requirement to use those --enable options; as a minimum, just --with-distro=LibreOfficeiOS should work.

Also I have tried a minimum case, but it have failed as well.

I have used lode as sources.

Build failed with fatal error: 'Cocoa/Cocoa.h' file not found


but the file does exist:

System info:
Apple M1
Ventura 13.1
XCode 14.2

I would appreciate any help and thoughts!

tango-mike-lima from Collabora community helped me and said that building the master branch of LO core for iOS is broken. But building the Collabora vendor branch co-22.05 is known to work. I have tried it to build and failed again.


config.log

… and the error is clear enough:

checking whether /usr/bin/patch is GNU patch... configure: error: no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it

Yep, you are right. I’ll try it again later.