ios - svn管理cocoapods问题,请大家帮忙看看
ringa_lee
ringa_lee 2017-04-18 09:50:37
0
2
361

公司打算用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_lee
ringa_lee

ringa_lee

reply all (2)
PHPzhong

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 "

    巴扎黑

    The path of

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

    s.source_files = "podfile/*.{h,m}" s.public_header_files = "podfile/*.h"
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!