1

AFNetworking のように、ポッドの最大バージョンを「Podfile」に設定しようとしています。

pod 'AFNetworking', '~> 2.0'

ただし、プライベート リポジトリを使用しているため、git リポジトリも指定する必要があります。

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git'

ココアポッド ガイド: https://guides.cocoapods.org/using/the-podfile.htmlの例では、特定のブランチ、タグ、またはコミットの使用方法を示しています。

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :branch => 'dev'

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :tag => '0.7.0'

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => '082f8319af'

ただし、ポッドの最大バージョンはありません。

プライベート git リポジトリと最大ポッド バージョンを組み合わせるにはどうすればよいですか?

4

1 に答える 1