我想创建一个基于某些私有代码的本地podspec.我似乎无法使用'source'属性,因为它不起作用.我可以使用'source_files'属性,但它不会递归地包含文件.所以使用看起来像这样的目录
Library
/src
/Core
/Audio
/Graphics
Run Code Online (Sandbox Code Playgroud)
我的podspec看起来像这样:
Pod::Spec.new do |s|
...
s.source = 'src' # this does not work.
s.source_files = 'src' # this only includes the files in src, and not in any of the Core, Audio or Graphics folders.
Run Code Online (Sandbox Code Playgroud)
我想要指定'-r'标志.我尝试过使用通配符,但没有运气.
我在一些项目中使用了CocoaPods.使用我的依赖项/开源框架来保持更新很酷且很容易.
但我对CocoaPods的内部运作有些怀疑.
在我们的Podfile中,我们只提供pod的名称,有时候版本也是如此
pod "AFNetworking" , "1.3.2"
Run Code Online (Sandbox Code Playgroud)
然后它正确地找到并克隆了AFNetworking repo.这是怎么回事?红宝石如何知道实际的存储库是在Github中.pod只与Github一起使用吗?(因为我只看到了Github上可用的框架的pod).如果我们可以使用pod作为Github以外的依赖项(例如来自Bitbuket),我们如何将该pod添加到我们的Podfile中?