https://kotlinlang.org logo
#ios
Title
# ios
d

dephinera

11/23/2023, 1:55 PM
Hello, Have you guys tried adding a pod dependency that is hosted in a private git repo? I tried the following but it does not work:
Copy code
specRepos {
    url("<https://gitlab.privaterepo.com/ios/ios-specs.git>")
}
pod("TranslationManager") {
    version = "0.3.0"
}
using this I get the following error:
Copy code
Execution failed for task ':KMPModule:podInstallSyntheticIos'.
> 'pod install' command on the synthetic project failed with return code: 1
  
          Error: [!] Unable to add a source with url `<https://gitlab.privaterepo.com/ios/ios-specs.git>` named `privaterepo-ios-ios-specs`.
         
          Possible reason: spec repos are not configured correctly.
          Ensure that spec repos are correctly configured for all private pod dependencies:
          cocoapods {
             specRepos {
                 url("<private spec repo url>")
             }
          }
the private repo contains podspecs for our internal modules. the file structure in the repo is
Copy code
Module1Name
-- version
   -- Module1Name.podspec
Module2Name
-- version
   -- Module2Name.podspec