Preserve folder structure Cocoa Pods

僤鯓⒐⒋嵵緔 提交于 2019-12-03 10:38:17
xarly

Well I have achieved to create my own folders with subspec.

You can create a subspec with this line:

s.subspec 'folder name' do |ss|
    ss.source_files = 'files'
    ss.frameworks = 'frameworks'
end

The ss.frameworks is not mandatory.

You can see the complete answer from the CocoaPods mail list:

https://groups.google.com/forum/#!topic/cocoapods/0kV8r2xnqA8

Thanks mcitrrus

I preferred to follow the AFNetworking pod spec:

https://github.com/AFNetworking/AFNetworking/blob/master/AFNetworking.podspec

This answer/question is outdated due to changes made in the 0.36 version of cocoapods.

PR 2647 added default grouping behaviour as long as you are using a ":path" pod. As of 1.3.1 the behaviour is that it will traverse the /Classes/... structure until it sees either a file or a second subfolder and start grouping from there in the .xcodeproj file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!