Hi all, I have a KMM library integrated into my Xc...
# multiplatform
c
Hi all, I have a KMM library integrated into my Xcode project using the Cocoapods plugin. It builds well on my own machine, and also on my CI build node when I SSH in and invoke the build manually. However, when I build on the build node using Jenkins, it just hangs at the Build Shared phase. I enabled debug logging on the Gradle command and it seems the last few logs are about connecting to the daemon
Copy code
2021-08-02T22:52:01.227+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2021-08-02T22:52:01.228+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Attempting to connect to [77b233a7-ef8c-4285-9d34-29b590570f08 port:61870, addresses:[/127.0.0.1]].
2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Trying to connect to address /127.0.0.1.
2021-08-02T22:52:01.234+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Connected to address /127.0.0.1:61870.
Does anybody have any hints for troubleshooting? I already tried setting
Copy code
-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2g
as my
GRADLE_OPTS
env variable.
k
Have you also tried the
--no-daemon
option? Looks like Gradle is trying to start a daemon but gets blocked by a firewall or something. The org.gradle.daemon property is meant to be set in gradle.properties (see https://docs.gradle.org/current/userguide/gradle_daemon.html)
c
I was doing this on a legacy iOS project and the issue seemed to go away when I switched from Legacy to Modern build system
👍 1