确定哪个CocoaPod需要特定的依赖关系

时间:2015-09-21 03:33:55

标签: ios cocoapods

动机:我正在使用XCode 7.1 Beta,而某些与其他CocoaPods相关的CocoaPod由于某种原因与beta不兼容。所以我知道哪些豆荚是坏的"但不是哪个Pod正在使用那些Pod。

是否有pod命令或其他方法输入 广告连播名称输出所有家属

1 个答案:

答案 0 :(得分:2)

有一个命令列出库的依赖关系(以FBSDKCoreKit为例)。

pod spec cat FBSDKCoreKit

其输出是其Podspec的内容,其中包含依赖项信息:

{
  "name": "FBSDKCoreKit",
  "version": "4.5.1",
  "summary": "Official Facebook SDK for iOS to access Facebook Platform's core features",
  "description": "The Facebook SDK for iOS CoreKit framework provides:\n* App Events (for App Analytics)\n* Graph API Access and Error Recovery\n* Working with Access Tokens and User Profiles",
  "homepage": "https://developers.facebook.com/docs/ios/",
  "license": {
    "type": "Facebook Platform License",
    "file": "LICENSE"
  },
  "authors": "Facebook",
  "platforms": {
    "ios": "7.0"
  },
  "source": {
    "git": "https://github.com/facebook/facebook-ios-sdk.git",
    "tag": "sdk-version-4.5.1"
  },
  "weak_frameworks": [
    "Accounts",
    "CoreLocation",
    "Social",
    "Security",
    "QuartzCore",
    "CoreGraphics",
    "UIKit",
    "Foundation",
    "AudioToolbox"
  ],
  "dependencies": {
    "Bolts": [
      "~> 1.1"
    ]
  },
  "header_dir": "FBSDKCoreKit",
  "header_mappings_dir": "FBSDKCoreKit/FBSDKCoreKit/Internal",
  "subspecs": [
    {
      "name": "arc",
      "public_header_files": "FBSDKCoreKit/FBSDKCoreKit/*.h",
      "source_files": "FBSDKCoreKit/FBSDKCoreKit/**/*.{h,m}",
      "exclude_files": "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.m",
      "requires_arc": true
    },
    {
      "name": "no-arc",
      "source_files": "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.m",
      "requires_arc": false,
      "dependencies": {
        "FBSDKCoreKit/arc": [

        ]
      }
    }
  ]
}

可以找到其他命令标志here