CocoaPods / CocoaPods

The Cocoa Dependency Manager.
https://cocoapods.org/
Other
14.57k stars 2.63k forks source link

Podfile.lock: Invalid installation source #10719

Open Algashev opened 3 years ago

Algashev commented 3 years ago

Report

What did you do?

  1. Install Pods files and create a Podfile.lock file using pod install.
  2. Change the version number of one of the Pod files e.g. pod 'YandexMobileMetrica/Dynamic','3.16.0' -> pod 'YandexMobileMetrica/Dynamic','3.17.0'
  3. Run pod install

What did you expect to happen?

Install all pod dependencies correctly from the Podfile.lock.

What happened instead?

Installion from wrong installation source: e.g.

  1. pod 'Alamofire', git: 'https://github.com/LimeHD/Alamofire.git', branch: 'v4.8.2_decrease_timeout_interval' uses https://github.com/Alamofire/Alamofire.git instead of https://github.com/LimeHD/Alamofire.git
  2. pod 'Project', git: 'https://mob_sdk_partner:PARTNER_ID@gitlab.project.media/project/sdk_mob_ios_dist.git', tag: '4.4.2' uses ssh instead of http

Workaround

  1. Delete Podfile.lock.
  2. Run pod install.

CocoaPods Environment

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.4 (20F71)
       Xcode : 12.5 (12E262)
         Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'MyPROJECT' do
  pod 'ActionSheetPicker-3.0'
  pod 'Alamofire', git: 'https://github.com/LimeHD/Alamofire.git', branch: 'v4.8.2_decrease_timeout_interval'
  pod 'Firebase/Analytics','7.11.0'
  pod 'Firebase/Crashlytics','7.11.0'
  pod 'Google-Mobile-Ads-SDK','7.69.0'
  pod 'GoogleMobileAdsMediationFacebook'
  pod 'GoogleMobileAdsMediationMyTarget'
  pod 'GoogleMobileAdsMediationMoPub'
  pod 'google-cast-sdk','4.4.7'
  pod 'GoogleAds-IMA-iOS-SDK'
  pod 'SwiftyStoreKit'
  pod 'SwiftyJSON'
  pod 'M3U8Kit', git: 'https://github.com/LimeHD/M3U8Parser.git', branch: 'limehd_0.2.5'
  pod 'mopub-ios-sdk'
  pod 'YandexMobileAds/Dynamic','~> 4.1'
  pod 'YandexMobileMetrica/Dynamic','3.16.0'
  pod 'YandexMobileMetricaPush/Dynamic'
  pod 'RealmSwift', '4.4.1'
  pod 'myTargetSDK'
  pod 'Project', git: 'https://mob_sdk_partner:PARTNER_ID@gitlab.project.media/project/sdk_mob_ios_dist.git', tag: '4.4.2'
end

target 'NotificationService' do
  pod 'YandexMobileMetricaPush/Dynamic'
end

deployment_target = '9.0'

post_install do |installer|
    installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
            end
        end
        project.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
        end
    end
end

Project that demonstrates the issue

Private.

dnkoutso commented 3 years ago

Probably a bug indeed, I do not have an easy fix right now, help is welcomed!