2

在更新 pod 文件时,它使用现有存储库询问大桶密码,但我没有密码(供应商大桶存储库),我想更改存储库 url。你能分享我如何更改网址吗?

 platform :ios, '10.0'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
target 'Gaadi Bazaar' do

source 'vendor repository url.git' 
#source 'own repository url.git'
source 'https://github.com/CocoaPods/Specs.git'
  # Pods for GaadiBazaar
      pod 'IXKit', '~> 0.1.3'
      pod 'IXNetwork', '~> 0.1.2'
      pod 'TTRangeSlider'
      pod 'TPKeyboardAvoiding'
      pod 'SideMenu', '~> 4.0.0'
      pod 'OneSignal', '>= 2.6.2', '< 3.0'
      pod 'LocaleManager'
      pod 'Fabric'
      pod 'Crashlytics'
      pod 'YouTubePlayer'

end
target 'OneSignalNotificationServiceExtension' do
    pod 'OneSignal', '>= 2.6.2', '< 3.0'
end

#post_install do |installer|
#    installer.pods_project.build_configurations.each do |config|
#        config.build_settings.delete('CODE_SIGNING_ALLOWED')
#        config.build_settings.delete('CODE_SIGNING_REQUIRED')
#    end
#end
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.new_shell_script_build_phase.shell_script = "mkdir -p $PODS_CONFIGURATION_BUILD_DIR/#{target.name}"
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '4'
            config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
        end
    end
end
4

2 回答 2

1

尝试这个:

pod 'SomePod', :git => 'https://github.com/someUser/SomePod'
于 2020-03-06T11:07:57.407 回答
1

要更改存储库 url,您可以按照以下方式

使用存储库的主分支

pod 'AKPickerView-Swift', :git => 'https://github.com/mrugeshtank/AKPickerView-Swift.git'

要使用存储库的不同分支:

pod 'AKPickerView-Swift', :git => 'https://github.com/mrugeshtank/AKPickerView-Swift.git', :branch => 'someBranchName'

要使用存储库的标签:

pod 'AKPickerView-Swift', :git => 'https://github.com/mrugeshtank/AKPickerView-Swift.git', :tag => '2.0.0'

或一个特定的提交

pod 'AKPickerView-Swift', :git => 'https://github.com/mrugeshtank/AKPickerView-Swift.git', :commit => '5edfe3a'


您可以在此处 找到有关 podfile 的更多文档

于 2020-03-07T04:40:21.860 回答