siraf
02/10/2023, 1:07 PMAll Publish
action on Github, the build crashes after ~12 mins.
Firstly the issues was that it was not able to find our Podspec repo, saying If it has not yet been cloned, add it via "pod repo add"
.
Not sure why, but we changed the Podspec repo from Private to Public and rerun the action.
This time it does not show that error but it still crashes, on the images below you can see what I found useful from the logs :siraf
02/10/2023, 2:05 PMrusshwolf
02/10/2023, 4:33 PMsiraf
02/13/2023, 7:50 AMthere was already something thereWhere? 2.
A workaround is to bump your version numberVersion number of what?
russhwolf
02/13/2023, 3:37 PMproject.version
or you can set a versionPrefix
in the kmmbridge
block. Whichever you do, a patch version will be appended each time you publish.Landry Norris
02/13/2023, 7:28 PMLandry Norris
02/13/2023, 7:30 PMsiraf
02/13/2023, 9:59 PMversionPrefix
, no luck.
I have tried both spm and cocoapods and still the same issue.
Could the issue be that we need an admin access on any of the repos? Or maybe something wrong with the deployKeys
?
I have admin access on kmmbridge repo, but not on the Kotlin and Podspec repo, another admin has uploaded keys which I made using command.Landry Norris
02/13/2023, 10:38 PMsiraf
02/14/2023, 10:32 AMrusshwolf
02/14/2023, 2:54 PMsiraf
02/14/2023, 3:03 PMsiraf
02/14/2023, 3:03 PMkmmbridge {
mavenPublishArtifacts()
githubReleaseVersions() versionPrefix.set("1.0.0")
cocoapods("git@github.com:something/sts-podspecs.git")
}
siraf
02/14/2023, 3:05 PMgradle.properties
file, only the Group has been edited:
kotlin.code.style=official
android.useAndroidX=true
org.gradle.jvmargs=-Xmx2g
LIBRARY_VERSION=0.1
GROUP=com.something.kmmbridge
siraf
02/14/2023, 3:07 PMKMMBridge-publish.yml
and All-publish.yml
are not changed, only the last line was uncommented as required in the tutorial:
PODSPEC_SSH_KEY: ${{ secrets.PODSPEC_SSH_KEY }}
PODSPEC_SSH_KEY is correct name, checked.siraf
02/14/2023, 3:24 PM409
after changing groupID and versionPrefix
Now the issue is:
Task :allshared:pushRemotePodspec FAILED
and
error: [!] Unable to find the `git@github.com:something/sts-podspecs.git` repo. If it has not yet been cloned, add it via `pod repo add``
podspec repo is public and I made sure that the path to it is correctrusshwolf
02/14/2023, 3:33 PMerror: Cloning spec repo `some-repo` from `git@github.com:something/sts-podspecs.git`
error: [!] Unable to find the `git@github.com:something/sts-podspecs.git` repo. If it has not yet been cloned, add it via `pod repo add`.
The pod repo add
is a red herring. This error generally happens when the github runner doesn't have access to the podspec repo. Do you have a deploy key set up correctly?Landry Norris
02/14/2023, 3:34 PMrusshwolf
02/14/2023, 3:36 PMsiraf
02/14/2023, 5:25 PMsiraf
02/14/2023, 5:30 PMrusshwolf
02/14/2023, 5:51 PMERROR: The key you are authenticating with has been marked as read only.
russhwolf
02/14/2023, 5:51 PMsiraf
02/15/2023, 5:49 PMwrite
access.
FYI @kpgalligan @Landry Norris
It would be good to update this part of tutorial to let people know that they need to put the checkmark here:siraf
02/16/2023, 2:40 PMallshared
pod in Xcode, but looks like the tutorial is not uptodate, we needed to print the hello-method this way(different that in tutorial)
print(BreedsHelloKotlin().sayHello())
siraf
02/16/2023, 2:41 PMrusshwolf
02/16/2023, 4:20 PM