IgniteEngine-iOS icon indicating copy to clipboard operation
IgniteEngine-iOS copied to clipboard

Preserve Classes folder structure in Cocoapods

Open RobertWalsh opened this issue 10 years ago • 2 comments

Since moving to only having the Starter Kit project and using Cocoapods exclusively, we need to configure the podspec to at the very least preserve the Classes folder hierarchy.

Developing and going through the classes folder as it is currently is tremendously tedious. This can be done with the use of subspecs. For examples on how to do that check out these:

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

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

Also should check out this http://www.rubydoc.info/gems/cocoapods/Pod/Project#add_file_reference-instance_method

RobertWalsh avatar May 18 '15 17:05 RobertWalsh

We do this already with spec.preserve_paths = 'Classes/**', however CocoaPods only permits this if you set it up as a development pod. Clone the source somewhere, then in your podfile, change it to:

pod 'IgniteEngine', :path => '/path/to/IXSource'

brandonscript avatar May 25 '15 03:05 brandonscript

Implemented in https://github.com/r3mus/IgniteEngine-iOS/commit/9145255e53451b4634c30c1d337845aaba3d935b

brandonscript avatar May 28 '15 16:05 brandonscript