Cocoapods - specify repo source name

Using Cocoapods v0.34.4

My subfile contains the following

source 'https://bitbucket.org/MyRepo/My-podspecs.git' source 'https://github.com/CocoaPods/Specs.git' 

When I run pod install , I need to provide a username / password for my bitbucket account. This is fine when I work locally, however I also do this as part of a continuous integration build with Xcode Server and Xcode 6. On the Xcode server, the pod install command fails because it cannot access the bitpack without my credentials.

Can I add my credentials to a subfile or in any other way tell Cocoapods credentials for the bitbucket repo server?

+6
source share
1 answer

You can use the Bitbucket SSH URL instead of the https URL and configure SSH without a password using an SSH key.

Change your subfile:

 source ' git@bitbucket.org :MyRepo/My-podspecs.git' 

And follow the instructions on the BitBucket page to configure the SSH key and add it to your Bitbucket account. Make sure you give an empty password when creating your key / identity. For example, in step 3.4 of their OSX / Linux instructions, just press enter twice.

+3
source

Source: https://habr.com/ru/post/977173/


All Articles