Try
git clone -b catalyst https://github.com/Jan-E/iSSH2
cd iSSH2
./catalyst.sh
It will build fat libraries for OpenSSL 1.1.1g and LibSSH2 1.9.0 with
x86_64 for Mac Catalyst.
The down side: fat libraries can only contain one x86_64 instance, so
with these libraries you will loose the possibility to run your project
on an iOS simulator.
You will have to switch libraries or create a new target in your project
to test it in a iOS simulator.
Jan
Riddhi K in gmane.network.ssh.libssh2.devel (Fri, 10 Jul 2020 11:26:39
+0530):
>Hello,
>
>Thank you for the reply.
>
>I already have Xcode project related to SSH Client for iPhone/iPad
>running for so long time, and there are some static libs used (ex:
>libcypto.a, libgcrypt.a, libgpg-error.a, libssh2.a). But these libs
>only have architectures (armv7, armv7s, arm64, arm64e, x86_64, i386).
>So, after enabling Mac catalyst I am getting error Building for Mac
>Catalyst but lib is only support iOS+simulator. So, Ive tried to
>build libs to support all of them by referring this
> https://github.com/Frugghi/iSSH2 <https://github.com/Frugghi/iSSH2> but
>still have no success. The libs generating after running this script
>have same architectures and using them in the project gives same error.
>Also tried some other scripts, tried to build manually but no success.
>
>Riddhi.
>
>> On 10-Jul-2020, at 4:55 AM, Jan Ehrhardt <phpdev_at_ehrhardt.nl> wrote:
>>
>> Will that work for Mac Catalyst: running iPad/iPhone apps on macOS
>> 10.15? Even for OpenSSL there are very few examples online how to do
>> that! See https://stackoverflow.com/a/56860199/872051 for one of those
>> resources.
>>
>> If it is as straightforward as you say it is, you surely can point me to
>> a github or gitlab repo where that is being done.
>>
>> Jan
>>
>> Will Cosgrove in gmane.network.ssh.libssh2.devel (Thu, 9 Jul 2020
>> 11:32:31 -0700):
>>> You do have to build fat libraries of OpenSSL to target the various
>>> platforms and use lipo to mirge them. This isn?t unusual for a static
>>> library and there are many resources online which will help walk you
>>> though the process specifically for OpenSSL. As for libssh2, creating
>>> an Xcode project and building it as a framework (not a static library)
>>> is the easiest way as it manages the targets for you.
>>>
>>> Will
>>>
>>>> On Jul 9, 2020, at 10:41 AM, Jan Ehrhardt <phpdev_at_ehrhardt.nl> wrote:
>>>>
>>>> Hi Will,
>>>>
>>>> Will Cosgrove in gmane.network.ssh.libssh2.devel (Tue, 7 Jul 2020
>>>> 16:11:48 +0000 (UTC)):
>>>>> The easiest way is to make an Xcode project from the source and build
>>>>> it. It's pretty straight forward to get building. You could also build
>>>>> it via the command line by following the docs. You may have to install
>>>>> some additional tools first, homebrew is the easiest way to do that.
>>>>
>>>> It is not that straightforward if you want to build libssh2 (and
>>>> openssl) for Mac Catalyst, as per the subject.
>>>> --
>>>> Jan
>>>>
>>>> _______________________________________________
>>>> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>>
>>>
>>> _______________________________________________
>>> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>
>> _______________________________________________
>> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2020-07-10