公司打算用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文件夹下没有任何文件可以引用...
真的不知道哪里出问题了,结构已经如图所示,希望大家帮我看看
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_files
和s.public_header_files
is written incorrectly. Try this?