无法在开发pod中导入私有cocoapod

时间:2016-06-30 12:12:39

标签: ios swift cocoapods

我正在创建一个私人pod,假设" pod X"它依赖于假设" pod Y"。我成功创建并通过了验证,但我无法导入" pod Y" in" pod X"因此我无法在" pod X"使用" pod Y"类。我已正确添加依赖项。如果我写了import语句,它会给出错误"没有这样的模块"。出于这个目的,我使用Swift作为语言。

这就是我的podspec文件的外观我已经更改了以下隐私名称和链接:

Pod::Spec.new do |s|
  s.name = 'Pod X'
  s.version = '0.1.0'
  s.license = { :type => 'MIT', :file => 'LICENSE' }
  s.summary = 'Pod X is to handle all the network related and Models etc'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  TODO: Pod X is to handle all the network related and Models etc.
                       DESC

  s.homepage         = 'https://****/podx.git'
  s.authors = { 'MGNetworkClient_OWNER' => 'USER_EMAIL' }
  s.source = { :git => 'https://***/podx.git', :tag => s.version }
  s.ios.deployment_target = '8.0'
  s.source_files = 'Source/*.swift'
  s.resource_bundles = {
    'MGNetworkClient' => ['Resources/**/*.{png}']
  }
   s.dependency 'Pod Y'
end

任何帮助都将不胜感激。

0 个答案:

没有答案