Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private podspecs not updated #35

Open
JanC opened this issue Mar 16, 2017 · 6 comments
Open

Private podspecs not updated #35

JanC opened this issue Mar 16, 2017 · 6 comments

Comments

@JanC
Copy link

JanC commented Mar 16, 2017

Hi,
when I add a private podspec using

        <pods-config ios-min-version="9.0" use-frameworks="true">
             <!-- optionally add private spec sources -->
            <source url="[email protected]:foo/foo-specs.git"/>
            <source url="[email protected]:bar/bar-specs.git"/>
        </pods-config>
        <!-- use the latest version of a pod -->
        <pod name="MyPod" version="3.3.0" />

The pod installation fails because the podspecs are not updated:

Sit back and relax this could take a while.
Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `MyPod (= 3.3.0)` required by `Podfile`

None of your spec sources contain a spec satisfying the dependency: `MyPod (= 3.3.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

It can be manually fixed by running pod repo update but it has to be run in the generated xcode project folder which is not convenient.

@jphillips05-zz
Copy link

jphillips05-zz commented Sep 26, 2018

Is there a solution for this? I believe I am running into the same issue.

@maniveltvl
Copy link

maniveltvl commented Apr 9, 2019

Hi,

I want to download the SDK from repository using credentials. If I use Native development, i can create separate pod file and can keep URL as well as Credentials. Here if I use private POD file in plugin.xml how can i provide URL and credential?

Please help me

Thanks
Mani

@blakgeek
Copy link
Owner

blakgeek commented Apr 10, 2019 via email

@msakthimuthiah
Copy link

msakthimuthiah commented May 3, 2019

provide URL and credential?

Hi Team,
Thanks for the quick reply. @maniveltvl - He is my Team Lead. So, am replying on behalf of him
We are trying to create a Custom Cordova Plugin where we are trying to download ios SDK via cocoaPods
Here is the steps that we had used in Native development to access Private repository by credentials

  1. Created a Podfile as follows

platform :ios, '12.0'
use_frameworks!
plugin 'cocoapods-art', :sources => ['Source Name']
source 'Source URL'

target 'ProjectTiltle' do
pod 'PODNAME', '~> PODVersion'
end

  1. Created a .netrc file in home directory of MacOS which has URL and User credential details. .netrc file as follows
    machine URL login USERNAME password PASSWORD
    machine URL login USERNAME password PASSWORD

  2. Then Pod installation has been done by sudo gem in Terminal. Automatically Pod file will download the library by accessing .netrc files for credentials and it will download the library and its dependency files

So, we are using Private repository in our app only not in Public access
Could you please help us how to achieve this same thing by this framework in Custom Cordova project? Advance thanks for any help. Have a great day!

@msakthimuthiah
Copy link

msakthimuthiah commented May 8, 2019

Hi Team,
Thanks for the quick reply. Sorry, we couldn't provide URL and Credential because of Client Confidentiality Agreement. Could you please help us by accessing some other Private Repository(In case URL and credential available with you) which follows the same procedure? Or Is there any other workaround is possible? Advance thanks for any help. Have a great day!

provide URL and credential?

Hi Team,
Thanks for the quick reply. @maniveltvl - He is my Team Lead. So, am replying on behalf of him
We are trying to create a Custom Cordova Plugin where we are trying to download ios SDK via cocoaPods
Here is the steps that we had used in Native development to access Private repository by credentials

  1. Created a Podfile as follows

platform :ios, '12.0'
use_frameworks!
plugin 'cocoapods-art', :sources => ['Source Name']
source 'Source URL'

target 'ProjectTiltle' do
pod 'PODNAME', '~> PODVersion'
end

  1. Created a .netrc file in home directory of MacOS which has URL and User credential details. .netrc file as follows
    machine URL login USERNAME password PASSWORD
    machine URL login USERNAME password PASSWORD
  2. Then Pod installation has been done by sudo gem in Terminal. Automatically Pod file will download the library by accessing .netrc files for credentials and it will download the library and its dependency files

So, we are using Private repository in our app only not in Public access
Could you please help us how to achieve this same thing by this framework in Custom Cordova project? Advance thanks for any help. Have a great day!

@maniveltvl
Copy link

Hi, @blakgeek

We are looking for your reply on the above query. Could you please help us?

Thanks
Manivel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants