Hello again. Any clue what might cause this error ...
# touchlab-tools
i
Hello again. Any clue what might cause this error ? The xcframework is uploaded. podscpec is upload to private repo
Copy code
> Task :projectname:pushRemotePodspec
> Task :projectname:kmmBridgePublish FAILED
FAILURE: Build failed with an exception.
17 actionable tasks: 17 executed
* What went wrong:
Execution failed for task ':projectname:kmmBridgePublish'.
> Companion
1
r
Is there any more output then that? It doesn’t really say much about what’s going on. Can you try running it again with the
--stacktrace
arg?
i
Back from Easter Holliday. Here's the log file
• package is uploaded • podspec is uploaded • git release is NOT created • tag is NOT created (temp tag is created kmmbridge-tmp-publishing-0.8.1)
This seems to be the relevant part
Copy code
Caused by: java.lang.NoSuchFieldError: Companion
 	at co.touchlab.faktory.internal.GithubCalls.createRelease(GithubCalls.kt:44)
 	at co.touchlab.faktory.versionmanager.GithubReleaseVersionManager.recordVersion(GithubReleaseVersionManager.kt:24)
 	at co.touchlab.faktory.KMMBridgePlugin$configureArtifactManagerAndDeploy$publishRemoteTask$1$1.execute(KMMBridge.kt:152)
 	at co.touchlab.faktory.KMMBridgePlugin$configureArtifactManagerAndDeploy$publishRemoteTask$1$1.execute(KMMBridge.kt:150)
r
That's a weird error. What versions of Kotlin, KMMBridge, and Gradle are you using?
i
Gradle
7.0.2
, error shows up on both on kmmbridge
0.3.4
and
0.3.7
r
hm. I'm not very confident it will help, but maybe try a newer gradle version
i
Ok. I’ll try that! Thanks.
upgraded Gradle to 7.5 as in the KMMBridgeSampleKotlin project, didn't help, but found another maven publish plugin in the project com.vanniktech.maven.publish -- was probably bringing in another version of ok-http ¯\_(ツ)_/¯
r
so were you able to get it working by changing something in the vanniktech plugin?
i
I just removed the plugin. Will have to check with Android guys if it's needed when they onboard on the project.