node-xcode icon indicating copy to clipboard operation
node-xcode copied to clipboard

support for adding libraries as subprojects

Open athibaud opened this issue 11 years ago • 4 comments

adding a compiled .a library is fine and all but it's sometimes nicer/cleaner to add it as a subproject dependency (ie. just like how cordova/phonegap is included in xcode projects)

anyway, i made a rather 'wonky' but working fork which supports this.

i did all this so it would be possible to add cordova plugins which only expose their libraries as linkable subprojects such as Sharekit and here's a little gist to show how i used the methods i've added.

i open this issue to enquire whether anyone has already started working on such a feature and whether the maintainers think it useful. i have a couple of weeks to spare to integrate this properly; documenting and writing tests for all my methods so i'd like your input on this.

regards.

athibaud avatar Jul 31 '13 15:07 athibaud

This sounds like a really useful feature, thanks for helping out!

I don't think anyone's started work on this; @filmaj has been working on the project a lot, so he or @imhotep would know better than I.

When you've cleaned up your change and got some tests in there, we'd be happy to merge it in.

alunny avatar Jul 31 '13 22:07 alunny

Any plans on reviewing this and eventually make a pullrequest? I know it's been a long time :)

Chuckytuh avatar Nov 16 '16 21:11 Chuckytuh

unfortunately have no time to dedicate to this.

from what i remember all that code is the fruit of a lot of reverse-engineering: adding a subproject manually, diffing out the .pbxproj files and figuring out where the differences came from and how they were structured.. and eventually it worked quite well.

however, xcode changes every year and they may be differences in pbxproj file structures (even very subtle ones) that render my fork unsuable. the project that made use of this is long dead and i haven't tested it since summer 2013.. i took me a substantial amount of time and i did my best to name the functions and make sure the code was understandable so i'd be very happy if that work eventually gets merged.

athibaud avatar Nov 17 '16 10:11 athibaud

This sounds like it could be useful. Unfortunately, I don't have time to review/update it. XCode pbxproj format has changed a little bit since 2013.

imhotep avatar Nov 17 '16 22:11 imhotep