Has anyone had success with adding a pod from a pr...
# ios
d
Has anyone had success with adding a pod from a private repository? Adding a custom spec repo fails with
Copy code
Unable to find a specification for PrivatePod (~> 0.3.0) dependend upon by KMPModule
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
Specifying the pod repo explicitly for the pod like this
Copy code
pod("PrivatePod") {
    version = "~> 0.3.0"
    source = git("<https://gitlab>.<domain>.com/path/repo.git") {
        tag = "0.3.0"
    }
}
Fails with
Copy code
Cloning into '/var/folders/1f/5nn9gymd4650nfgfv6lbx2q80000gp/T/d20240118-10099-4kfdwq'...
  fatal: could not read Username for '<https://gitlab>.<domain>.com': Device not configured
and the cocoapods gradle plugin doesn’t support ssh urls
a
Is it possible for you to clone this url using the git command from the terminal? I would imagine you would get the above error message.
underneath the hood the cocoapods plugin is just running a terminal and performing a git clone, so if your credentials are not in your local git config then it wont be able to find it
You could try using ssh way, git@github.com:user/repo.git for example
134 Views