Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

specify a version in Podfile is not work #1876

Closed
swain opened this Issue Mar 11, 2014 · 7 comments

Comments

Projects
None yet
3 participants

swain commented Mar 11, 2014

When project A have two dependencies pod B and pod C, then pod C is also a dependency of pod B.
pod C have version 1.0.0 and 1.0.1 in the repo.
Project A's Podfile specify a version for pod C like this:

pod 'B', '1.0.0'
pod 'C', '1.0.0'

pod B's podspec file has a line like this:

s.dependency 'C'

Now, when I excute pod install for project A, the cocoapods will Installing C (1.0.1)
It is puzzling me now. why the specific version in A's Podfile is not working?

Contributor

kylef commented Mar 11, 2014

I can't reproduce this issue. Can you upload Podfile.lock as this might provide additional information to help find this issue.

swain commented Mar 12, 2014

I rename and remove some unnecessary pods.
The pod 'PublicPlatform' is the pod 'C' I mentioned before.

$ pod search PublicPlatform
-> PublicPlatform (1.0.1.20140324.0312102616)
   PublicPlatform - DESC
   pod 'PublicPlatform', '~> 1.0.1.20140324.0312102616'
   - Homepage: https://github.com/CocoaPods/CocoaPods/issues/1876
   - Source:  
   https://github.com/CocoaPods/CocoaPods/issues/1876/PublicPlatfo
   rm-1.0.1.20140324.0312102616-framework.tgz?1394591209.tgz
   - Versions: 1.0.1.20140324.0312102616, 1.0.1.20140324.0312101357, 1.0.1.20140324.0311233811, 1.0.0.20140324.0311155402, 1.0.0.20140324.0311153544, 1.0.0 [master repo]
PODS:
  - TRobot (1.0.0):
    - TTFoundation
  - TAAuthorize (1.0.0):
    - ZZBusinessCommon
    - ZZCommonUtility
    - ZZJSONKit
    - TTFoundation
  - TADidWidget (1.0.1):
    - ZZCommonUtility (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZWidgetContainer (~> 1.0.0)
    - MMMKit (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
  - TAMoreWidget (1.0.0)
  - TZZass (1.0.0.20140324.0311022801):
    - ZZConfig (~> 1.0.0)
    - ZZJSONKit (~> 1.0.0)
    - ZZLongLinkService (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - GestureService (~> 1.0.0)
    - MMMKit (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - OpenPlatform (~> 1.0.0)
  - ZZBadgeService (1.0.0):
    - ZZJSONKit (~> 1.0.0)
    - ZZLongLinkService (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
  - ZZBusinessCommon (1.0.0):
    - ZZCommonUtility (~> 1.0.0)
    - ZZLongLinkService (~> 1.0.0)
    - ZZTTIdentifier (~> 1.0.0)
    - CrashReporter (~> 1.0.0)
    - GestureService (~> 1.0.0)
    - PushService (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
    - SPSafeUse (~> 1.0.0)
  - ZZCommonUtility (1.0.0.20140324.0312021140)
  - ZZConfig (1.0.0.20140324.0312021202):
    - TTFoundation (~> 1.0.0)
  - ZZJSONKit (1.0.0.20140324.0312021438)
  - ZZLongLinkService (1.0.0):
    - ZZJSONKit (~> 1.0.0)
  - ZZMap (1.0.0.20140324.0312021252):
    - ZZBusinessCommon (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - MMMKit (~> 1.0.0)
  - ZZTTAOP (1.0.0)
  - ZZTTFoundation (1.0.0.20140324.0312021404)
  - ZZTTIdentifier (1.0.0.20140324.0312021423)
  - ZZTTRuntime (1.0.0):
    - ZZShareKit (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
  - ZZMonitor (1.0.0)
  - ZZRemoteLogging (1.0.0):
    - ZZTTIdentifier (~> 1.0.0)
  - ZZShareKit (1.0.0)
  - ZZWebAppProcessor (1.0.0):
    - TTFoundation
  - ZZWebImage (1.0.0.20140324.0312021537)
  - ZZWidgetContainer (1.0.0):
    - ZZBadgeService (~> 1.0.0)
    - ZZBusinessCommon (~> 1.0.0)
    - ZZCommonUtility (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - OpenPlatform (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
  - BittyApp (1.0.0):
    - ZZCommonUtility (~> 1.0.0)
    - ZZMonitor (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZShareKit (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - lbsLocation (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - PublicPlatform (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
    - SPSafeUse (~> 1.0.0)
    - Transfer (~> 1.0.0)
  - CrashReporter (1.0.0)
  - CCio (1.0.0):
    - ZZBusinessCommon (~> 1.0.0)
    - ZZCommonUtility (~> 1.0.0)
    - ZZJSONKit (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - BittyApp (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - PersonalService (~> 1.0.0)
    - SecurityAppCommon (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
    - SPSafeUse (~> 1.0.0)
  - CreditcardScanner (1.0.0)
  - Device (1.0.0)
  - GestureService (1.0.0)
  - Home (1.0.0):
    - ZZBadgeService
    - ZZWebImage
    - Launcher
    - TTFoundation
    - PublicPlatform
  - Launcher (1.0.0.20140324.0312021222):
    - ZZBadgeService (~> 1.0.0)
    - ZZBusinessCommon (~> 1.0.0)
    - ZZCommonUtility (~> 1.0.0)
    - ZZTTFoundation (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZWidgetContainer (~> 1.0.0)
    - GestureService (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
    - OpenPlatform (~> 1.0.0)
    - SecurityCommon (~> 1.0.0)
  - lbsLocation (1.0.0)
  - MMMKit (1.0.0.20140324.0312010059)
  - MobApp (1.0.0):
    - TTFoundation
  - TTFoundation (1.0.0.20140324.0312021452):
    - ZZTTIdentifier (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
  - TTOpt (1.0.0)
  - MSPSetting (1.0.0)
  - OpenPlatform (1.0.0):
    - ZZWebImage
    - TTFoundation
  - OtpCommon (1.0.0)
  - PersonalService (1.0.0.20140324.0312111442):
    - ZZBusinessCommon (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
  - Promotion (1.0.0):
    - TTFoundation
  - PublicPlatform (1.0.1.20140324.0312102616):
    - ZZBadgeService (~> 1.0.0)
    - ZZBusinessCommon (~> 1.0.0)
    - ZZCommonUtility (~> 1.0.0)
    - ZZConfig (~> 1.0.0)
    - ZZMonitor (~> 1.0.0)
    - ZZRemoteLogging (~> 1.0.0)
    - ZZShareKit (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - BittyApp (~> 1.0.0)
    - GestureService (~> 1.0.0)
    - Launcher (~> 1.0.0)
    - MMMKit (~> 1.0.0)
    - MobApp (~> 1.0.0)
    - PersonalService (~> 1.0.0)
    - Transfer (~> 1.0.0)
  - PushService (1.0.0):
    - ZZJSONKit (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
  - SCRobot (1.0.0)
  - SecurityAppCommon (1.0.0)
  - SecurityCommon (1.0.0)
  - SPSafeUse (1.0.0.20140324.0312000041):
    - TRobot (~> 1.0.0)
    - ZZWebImage (~> 1.0.0)
    - TTFoundation (~> 1.0.0)
  - Themis-iOS (1.0.0)
  - Transfer (1.0.0)
  - UpdateService (1.0.0)
  - UploadAddress (1.0.0):
    - TTFoundation
  - WWAccount (1.0.0):
    - TTFoundation
  - WWCommon (1.0.1):
    - TTFoundation
  - WWFixedDeposit (1.0.0):
    - TTFoundation
  - WWHome (1.0.0):
    - TTFoundation
  - WWWithdraw (1.0.0):
    - TTFoundation

DEPENDENCIES:
  - TAAuthorize (= 1.0.0)
  - TADidWidget (= 1.0.1)
  - TAMoreWidget (= 1.0.0)
  - TZZass (= 1.0.0.20140324.0311022801)
  - ZZBadgeService (= 1.0.0)
  - ZZBusinessCommon (= 1.0.0)
  - ZZCommonUtility (= 1.0.0.20140324.0312021140)
  - ZZConfig (= 1.0.0.20140324.0312021202)
  - ZZJSONKit (= 1.0.0.20140324.0312021438)
  - ZZLongLinkService (= 1.0.0)
  - ZZMap (= 1.0.0.20140324.0312021252)
  - ZZTTAOP (= 1.0.0)
  - ZZTTFoundation (= 1.0.0.20140324.0312021404)
  - ZZTTIdentifier (= 1.0.0.20140324.0312021423)
  - ZZTTRuntime (= 1.0.0)
  - ZZMonitor (= 1.0.0)
  - ZZRemoteLogging (= 1.0.0)
  - ZZShareKit (= 1.0.0)
  - ZZWebAppProcessor (= 1.0.0)
  - ZZWebImage (= 1.0.0.20140324.0312021537)
  - ZZWidgetContainer (= 1.0.0)
  - BittyApp (= 1.0.0)
  - CrashReporter (= 1.0.0)
  - CCio (= 1.0.0)
  - CreditcardScanner (= 1.0.0)
  - Device (= 1.0.0)
  - GestureService (= 1.0.0)
  - Home (= 1.0.0)
  - Launcher (= 1.0.0.20140324.0312021222)
  - lbsLocation (= 1.0.0)
  - MMMKit (= 1.0.0.20140324.0312010059)
  - MobApp (= 1.0.0)
  - TTFoundation (= 1.0.0.20140324.0312021452)
  - TTOpt (= 1.0.0)
  - MSPSetting (= 1.0.0)
  - OpenPlatform (= 1.0.0)
  - OtpCommon (= 1.0.0)
  - PersonalService (= 1.0.0)
  - Promotion (= 1.0.0)
  - PublicPlatform (= 1.0.0)
  - PushService (= 1.0.0)
  - SCRobot (= 1.0.0)
  - SecurityAppCommon (= 1.0.0)
  - SecurityCommon (= 1.0.0)
  - SPSafeUse (= 1.0.0.20140324.0312000041)
  - Themis-iOS (= 1.0.0)
  - Transfer (= 1.0.0)
  - UpdateService (= 1.0.0)
  - UploadAddress (= 1.0.0)
  - WWAccount (= 1.0.0)
  - WWCommon (= 1.0.1)
  - WWFixedDeposit (= 1.0.0)
  - WWHome (= 1.0.0)
  - WWWithdraw (= 1.0.0)

SPEC CHECKSUMS:
  TRobot: c533024081200e427f25308be1fa83bcf56a82b1
  TAAuthorize: e634fd221f4ae5b1b5d8b34da737469557080253
  TADidWidget: 6b16a4225917917a28e8c636751ee9f1162707b4
  TAMoreWidget: e7373938e1e834a32a528b02d500cdb6809b9146
  TZZass: 5bf23d86a745fee846a32181e0dc66d24878ef39
  ZZBadgeService: 5b93da152a2d868f054370414d45cf32b07de1c5
  ZZBusinessCommon: 34ddb6e66c4a2cf9486ad27aa973654fdd215733
  ZZCommonUtility: 4eb3b67dbf51d67755f59ddd9222d617f9e14f3c
  ZZConfig: 4fb68c1266a2c8546a697bd38198adc166beacff
  ZZJSONKit: 74f84a30607ea4fb3068ca6539d2aa44aa3e7e42
  ZZLongLinkService: b80ab1177a2e38a281797a167d1133d2a0b4a65d
  ZZMap: 029fbb14bc38806e089c7fb3c8e1bfa63a3727dd
  ZZTTAOP: f21cc151dc925766f4a7f6840bb7e478f8f689c6
  ZZTTFoundation: bba260a2564c8b85ac11dca79ddc3894220b5c46
  ZZTTIdentifier: ba7f9fe7efeaba207fb604160de99ec3a31ce196
  ZZTTRuntime: a6bfec84ab2930947fd3e4af8603332bfe0780e6
  ZZMonitor: b6897b0d37f74bca9140e3a086ddf571f70167e9
  ZZRemoteLogging: 1eb6ba863f7c434bf8eadc837d5314dc45eadca9
  ZZShareKit: b7894e8f99834ac8d7ccfde5005738195f6f6526
  ZZWebAppProcessor: d285c1ebc9a7c77865674c82e42e7af45c738820
  ZZWebImage: 8971b68abff96c5bcc8b7555a7a60fb2c01397c1
  ZZWidgetContainer: 197b2ef0868ecfaa0b971273b87b84f89ab700fc
  BittyApp: 78134d9d8abbcbcfd4d9208827cef7ffe2a7c3f8
  CrashReporter: 219c5e59643069a45a42eb7bf140583aeb24302c
  CCio: 1147c909f01f9326bacefaba2a3902de5f0402d8
  CreditcardScanner: 5caf9c48f85a0afd912a014732101da4d10cf077
  Device: 89a78523b22fdc1d023dd39008c306b3660949fc
  GestureService: 705fd794f6dde7737f142980cdf0754ad2612593
  Home: 69d6c811f973966bd33174a58338caa05af1b6c7
  Launcher: de0b209d48e209cd5c36d491af6f95db34c02601
  lbsLocation: 2070c1aa3a9ee85d838f8c085edaaf84dd600a91
  MMMKit: 527e01d23ec8f9a732069871f6c4dcad90ea9737
  MobApp: 682a7c9a54e8b0b5cf95943d8c900ada5e14d9ba
  TTFoundation: ad141ee81c3ff607032b576936ac75df11bd4638
  TTOpt: 00f82c26c7ee7e288130c8de5c10920067c69407
  MSPSetting: d9248412022ab7f445edfa40efddfa539a5222d5
  OpenPlatform: ba270baa3c0c70d5f4ae134388d17f7ea9d92f0f
  OtpCommon: c09f80e97bc03f1a0947cf4292e8217dff77ce2c
  PersonalService: ab97c6519c90adb3285a7e574575973f11846eea
  Promotion: f8227925da342005ab46c5ee5ed72b3b2e7cff69
  PublicPlatform: 284daff805344c18971f122bde7b2cca95e314fc
  PushService: ad57924da3c7fe14f3add0043b0cdbca0f5e5317
  SCRobot: da0dbc1c8d3349a03420b5d21504b991b70b3d26
  SecurityAppCommon: d77a94757b1a8100125eaf7a7217ff175e426c5c
  SecurityCommon: 22cf964c3d265709670e47ff8f9329798da63d8b
  SPSafeUse: 7d24a615a73e709bfce61ea1d6653175fe93d697
  Themis-iOS: 59348e3d3448caeffe7cf0e873266e094a030bae
  Transfer: 5afadd1bd5d9494dd9a0d1682216e4826fec5f67
  UpdateService: 9fe50048d09a45929d945297f7bae5e4388a479a
  UploadAddress: bb9b67c88c98776612467e37e8996d8b50b485d6
  WWAccount: e61fa622e81f74d51065ede63a12b12ea03aae6b
  WWCommon: 1c25c623832e7581d628d9ee5b1e9fb40c5ad0a9
  WWFixedDeposit: 0f09f0294c731cb8370a1ec85cd83317dd0aa361
  WWHome: ed84e430c354e6229869dcb91e03eb4e0939c4c5
  WWWithdraw: b550671516cb31eb419a20832230e32358286069

swain commented Mar 12, 2014

And what's important is, if I change the Podfile's sort like this: put pod C before pod B, and everything is OK.
I Gueess the cocoapods cache the version when analyzing all the dependencies, and the Podfile not have the highest priority.

pod 'C', '1.0.0'
pod 'B', '1.0.0'
Contributor

kylef commented Mar 12, 2014

Does pod outdated show that PublicPlatform is outdated?

Did you run pod update to try and update PublicPlatform to the latest version?

Contributor

kylef commented Mar 12, 2014

Also, there is a bug where a Podspec may incorrectly cause it's dependencies to be updated when it shouldn't (#1860) which could be exposed here.

swain commented Mar 12, 2014

I'm sure all pods up to date. I try pod install or pod update many times.
A friend of me have make a patch for cocoapods and now it works fine. He will provide the patch later. Then u can check the code, ths!

Owner

fabiopelosin commented Mar 27, 2014

The order of declaration of dependencies matter for the moment... This is a limitation which will be overcome by #978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment