我創建一個簡單的私人艙與本教程:http://pablin.org/2013/05/18/cocoapods-for-internal-libraries/保留文件夾結構可可豆莢
其實我的回購剛一組類
一切正常,我可以完全安裝我的吊艙。唯一的問題是所有文件都安裝在主文件夾內部,所以它不保留文件夾結構。
我有這樣的文件夾結構,命名庫:myRepository
Classes
|
------ foo.h and foo.m
------ Controller Layer
|
----------- foo2.h and foo2.m
------ ViewLayer
|
----------- foo3.h and foo3.m
所有文件都被一個叫myRepository文件夾內複製。
這是我podspec:
Pod::Spec.new do |s|
s.name = "fooClasses"
s.version = "0.0.1"
s.summary = "Common clases of foo"
s.homepage = "http://foo.com"
s.license = 'BSD'
s.license = { :type => 'Foo License', :file => 'LICENSE.txt' }
s.author = { "me" => "[email protected]" }
s.platform = :ios, '7.0'
s.source = { :git => "https://github.com/myRepository.git", :tag => "0.0.1" }
s.source_files = "**/*.{h,m}"
s.requires_arc = true
end
我試圖與s.preserve_path = 「*」 和s.preserve_path = 「類」
任何想法?
謝謝!!!!!!!!
Cocoapods v0.36修復了這個問題https://github.com/CocoaPods/CocoaPods/pull/2647 – onmyway133