已安装私人仓库,但在Xcode项目中为空

时间:2018-08-23 10:12:17

标签: swift cocoapods podspec

这是我的 podspec

Pod::Spec.new do |spec|
 spec.name = 'OoTracker'
  spec.version = '1.0.0'
  spec.license = 'Copyright Oodrive'
  spec.source       = { :git => 'https://oogit.oodrive.net/mobile-common/OoTracker.git', :tag => spec.version.to_s }
  spec.summary = 'A small library to track actions and events using the Matomotracker library'
  spec.homepage = 'https://oogit.oodrive.net/mobile-common/TrackerPod/blob/master/README.md'
  spec.author  = { 'Sandy Ludosky' => 's.ludosky@oodrive.com' }
  spec.ios.deployment_target = '10.0'
  spec.osx.deployment_target = '10.0'
  spec.platform = :ios, "9.1"
  spec.swift_version = '4.0'
  spec.source_files = 'Source/*.{h,m,swift}'
  spec.frameworks  = 'UIKit', 'Foundation', 'CoreFoundation'
  spec.dependency 'MatomoTracker', '~> 5.2.0'

  spec.subspec 'OoTracker' do |s|
    s.source_files  = 'Source/**/*.swift'
  end

end

和我的 Podfile :该Pod不是公开的,因此我使用https指向它

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'TrackerExample' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TrackerExample
  pod 'PodName', :git => '******'

  target 'TrackerExampleTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

这是pod文件夹的屏幕截图。这是完全空的。展开文件夹时,没有文件或类附加到pod上

enter image description here

有什么想法吗?

0 个答案:

没有答案