Hello! Thx for reply!
Now I'm sure that there is no problem with http/2 support on macOS so something wrong with my code. I believe it's something with dependencies.
Yep, the first thing I checked was certificate itself. I define root certificate with 'StaticDataCertificateProvider' initialised with string from cert data (also checked with 'FileWatcherCertificateProvider' with cert path). Also I checked if string with cert data is correct.
Insecure connection works just fine (mean server example).
How I can get error logs or smith? From client code I didn't see any error - mean the connection cannot established due to problems with ssl handshake so it tried for timeout.
But (possible offtopic) when I was looking for possible solution I tried to turn off server verification (GRPC_TLS_SKIP_ALL_SERVER_VERIFICATION) and my client thrown an exception 'grpc_channel_check_connectivity_state called on something that is not a client channel, but 'lame-client'' is it correct? In debug 'host' and 'port' in channel was empty - it's possible reason for "lame client" but don't know why - cause I define server info.
While, I write this, found recommendation to remove grpc_unsecure & grpc++_unsecure from deps and code starts to work properly. Also rebuild all dependencies and it also worked but even without removing those two libs. Now I'm a little bit confused. Previously build was the same - with cmake, two independent builds for x86_64 and arm64 (m1) and combine into multi architecture static lib with 'lipo -create'.
So I think for now problem is resolved. I don't know how and where was original problem (possibly error in build deps).
четверг, 30 декабря 2021 г. в 02:56:11 UTC+3, Zhen Lian: