https://kotlinlang.org logo
a

Abhishek Agarwal

09/09/2023, 3:25 PM
I have few question can anyone can please point me to the right direction I am using
faktorybuildbranches.yml
in my workflow, it creates a release but there are few problems a) in my
main
branch, I still can’t see
Package.swift
, therefore I am not able to add in my iOS project. But when I download source code that was generated by the workflow, it has Package.swift b) it creates a release with the name
unspecified.1
r

russhwolf

09/09/2023, 9:36 PM
faktorybuildbranches.yml
publishes to a branch rather than to main. Use
faktorybuild.yml
if you’d rather publish to main. I’m guessing the unspecified name is because you forgot to set a version.
🙌 1
a

Abhishek Agarwal

09/11/2023, 1:11 AM
I have a public repo in which I used
faktorybuild.yml
but after that when I am trying to add it in my xcode I get the error .
r

russhwolf

09/11/2023, 1:37 AM
401 is an auth issue. Github requires authenticated access for artifacts even if the repo is public. Take a look at this section of the docs: https://kmmbridge.touchlab.co/docs/DEFAULT_GITHUB_FLOW#ios-dev-machine-config
a

Abhishek Agarwal

09/11/2023, 1:46 AM
yes I just saw that few mins back, Now I have added github token in ~/.netrc but it’s not working for some reason, also, I tried adding my token in my local keychain but that’s also not solving the issue . My github token has all the required access.
Copy code
machine <http://trunk.cocoapods.org|trunk.cocoapods.org>
  login id
  password token
machine <http://maven.pkg.github.com|maven.pkg.github.com>
  login id
  password token
my current netrc file looks like this
r

russhwolf

09/11/2023, 1:51 AM
Is it still a 401 error you see or something else?
a

Abhishek Agarwal

09/11/2023, 1:52 AM
same
Screenshot 2023-09-11 at 7.25.47 AM.png
r

russhwolf

09/11/2023, 1:57 AM
Can you expand the "failed downloading..." message? I can't tell if it's the same error or not
a

Abhishek Agarwal

09/11/2023, 2:02 AM
Screenshot 2023-09-11 at 7.32.24 AM.png
r

russhwolf

09/11/2023, 2:11 AM
Ok. I'm not sure what's going wrong. I can try to dig in a little more at some point but pretty busy this week with Droidcon so probably won't have time until the following week.
a

Abhishek Agarwal

09/11/2023, 2:12 AM
Is there any workaround that I can do for now if possible ?
Have solved the issue now! thanks for the help
r

russhwolf

09/11/2023, 12:49 PM
Oh good! What was the fix?
a

Abhishek Agarwal

09/11/2023, 12:53 PM
don’t know, I just tried restarting my mac and it just worked!