我用本教程创建了一个简单的私有pod: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
Run Code Online (Sandbox Code Playgroud)
所有文件都复制到名为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" => "me@me.com" }
s.platform = :ios, '7.0'
s.source = { :git => "https://github.com/myRepository.git", :tag …Run Code Online (Sandbox Code Playgroud)