search

Home  >  Q&A  >  body text

ios - svn管理cocoapods问题,请大家帮忙看看

公司打算用svn管理cocoapods实现组件化,我的podspec是这么写的

Pod::Spec.new do |s|

  s.name         = "podtest"
  s.version      = "0.0.1"
  s.summary      = "test"

  s.description  = <<-DESC
                test
                   DESC

   s.homepage = "svn://liyanlong@svn.u17.cc/ios/U17_SVN_Cocoapods"
 
   s.license      = "MIT"

   s.author       = { "wangyanlong" => "553836854@qq.com" }
  
   s.platform     = :ios, "5.0"

   s.source       = { :svn => "svn://liyanlong@svn.u17.cc/ios/U17_SVN_Cocoapods", :tag => "1.0.1" }

   s.source_files  = "podtest/podfile/*.{h,m}"

   s.public_header_files = "podtest/podfile/*.h"

   s.frameworks = "Foundation", "UIKit"

    s.requires_arc = true

end

我的svn上1.0.1tag的目录是这么组织的

然后我的podfile是这么写的

target 'test' do

  pod 'podtest',:path => '/Users/apple/Desktop/podtest.podspec'

end

问题在于,我如上所写,安装也成功了,但是Development Pods文件夹下没有任何文件可以引用...

真的不知道哪里出问题了,结构已经如图所示,希望大家帮我看看

ringa_leeringa_lee2771 days ago392

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 09:52:37

    I completely figured it out. It directly corresponds to the path under the tag in svn, pod 'xxx',:svn =>"svn://liyanlong@svn.u17.cc/ios/U17_SVN_Test_CocoaPods/tags/1.0.1/xxx "

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:52:37

    The path of

    pod install 没有问题的话那就是你的 s.source_filess.public_header_files is written incorrectly. Try this?

    s.source_files  = "podfile/*.{h,m}"
    s.public_header_files = "podfile/*.h"

    reply
    0
  • Cancelreply