Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create spec for new major library version?

Tags:

cocoapods

I've recently released version 4 of SBJson. This is a new major version that is not backwards compatible. Since SBJson is widely bundled by other popular libraries I renamed all the classes & enums to make sure it can be used in conjunction with prior versions.

However, I'm not sure how to best handle this situation with CocoaPods. I contributed a 4.0.0 spec to the existing SBJson specs, but I suspect it will be impossible to install version 3.2 and 4.0.0 in the same project. Do I have to clone the 4.0.0 spec into a SBJson4 (notice extra major version number in name) spec as well?

like image 686
Stig Brautaset Avatar asked Dec 24 '13 23:12

Stig Brautaset


1 Answers

Morning.

If you want users to have both versions installed simultaneously they will probably have to be separate pods.

AFAIK you can't have one pod installed twice in a project. I don't even know how you'd get round the linker errors etc. for that to be possible!

like image 131
deanWombourne Avatar answered Oct 03 '22 18:10

deanWombourne