Cocoapods Podspec Source Support for HTTP Authentication

I am setting up a private repo that allows distribution of binary files .framework(so there is no source code) through Cocoapods.

The actual repo will be hosted on the Git server, as shown on the Cocoapods page, and the actual files .frameworkwill be hosted on another server that would allow access to the files .frameworkvia HTTP.

Let's say I add this to the .podspec file:

spec.source           = { :http => 'https://myhostserver.com/Releases/v1.0.0/MyLibrary.framework.zip' }

From reading the documentation, I don’t understand which authentication Cocoapods supports for linking to a file .frameworkvia HTTP.

I looked at both

http://guides.cocoapods.org/making/private-cocoapods.html https://guides.cocoapods.org/syntax/podspec.html#source

0
source share
1 answer

CocoaPods' Downloader uses CURL to download files under the hood. If you want to use HTTP, you can configure credentials for authentication in the file ~/.netrc.

0
source

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


All Articles