I have another question regarding `KMMbridge` . I ...
# touchlab-tools
p
I have another question regarding
KMMbridge
. I have the private repo with SPM package, I am adding it to Xcode, but program do not see the version of the package and throw this error:
Copy code
Failed to resolve dependencies Dependencies could not be resolved because no versions of 'sharedspm' match the requirement 0.1.2 and root depends on 'sharedspm' 0.1.2.
More in thread 🧵 👇
this repo do not have any code, i just publish the package there:
as you can see the version is exactly `0.1.2`:
all the files are there, but the Xcode do not see it. What Am I missing?
r
You'll need a package.swift file in the repo for Xcode to know what it's looking at.
p
ok, I see one in here: https://github.com/touchlab/KMMBridgeKickStart/blob/main/Package.swift Should I make it manually or this should be generated somewhere?
r
The kmmbridge plugin will generate it in place, but I guess it's committing putting it in your code repo rather than the repo where your artifacts are. We don't have any direct support for splitting things in this way, but you can probably hack something together to copy the file over and commit it
p
ok, I typed that question too soon. I found this in docs: https://github.com/touchlab/KMMBridgeKickStart/blob/main/Package.swift However this would work if I will build and publish to the same repo.
Yes, I will find an action that copy this file over.
Unfortunately, same error even with Package.swift
could that be an Auth issue?
r
Possibly. What's the error? See here for general auth stuff ​​https://kmmbridge.touchlab.co/docs/DEFAULT_GITHUB_FLOW#ios-dev-machine-config
p
error is the same:
Copy code
Failed to resolve dependencies Dependencies could not be resolved because no versions of 'sharedspm' match the requirement 0.1.2 and root depends on 'sharedspm' 0.1.2.
I have added
.netrc
to my home directory, still the same error.
this is what I get at the top of Resolve packages log:
Copy code
Showing Recent Messages
the package manifest at '/Package.swift' cannot be accessed (/Package.swift doesn't exist in file system) in <https://github.com/tiltapp/sharedSPM.git>
I am checking different repos that use kmmBridge (confetti, kmmBridgeSample) and none is using github packages. In these samples there are releases. In my case I got only the package. I do not think this is auth issue. The Xcode connects to the github repo but it is unable to find my package
r
I'm not sure what you mean. kmmbridgeSampleKotlin does use github packages.
Are you generating a token with repo and write:packages permissions in your netrc?
Actually, you probably only need read:packages for the consuming side
p
I was confused by using kmmBridge with private repo and after few days of fight I dropped it. I am bulding the framework manually and push it to another branch, so iOS can use it in the project. Maybe I will try the kmmBridge in the future. Thank you for the support.