projectGeneratorSimple icon indicating copy to clipboard operation
projectGeneratorSimple copied to clipboard

Xcode: Frameworks not added to "link binary with libraries"

Open robotconscience opened this issue 10 years ago • 2 comments

I'm seeing an issue where frameworks I've specified via ADDON_FRAMEWORKS in addon_config.mk are added to the project but not to the "Link binary with libraries" build phase.

Replicate:

  • clone ofxCoreLocation into addons
  • create project with the PG using this addon
  • open project: frameworks are in the sidebar, but not in the "Link binary..." build phase (and thus won't compile)

Wish this came with a PR, but couldn't find my way through Xcode XML craziness... And apologies in advance if I'm just missing something in addon_config!

robotconscience avatar Jun 12 '14 15:06 robotconscience

thanks for the detailed bug report, I've fixed this now (it was missing the build phases, as you pointed out). It's not 100% clean to put any old framework in "system" frameworks folder so it might be good to make an addons frameworks folder down the line.

ofZach avatar Jun 20 '14 20:06 ofZach

Awesome! Yes makes sense. The one I'm using is just an OS X framework; I think I'm linking it the same way OF does but I may be wrong. Would be good to test with ofxSyphon or something else that includes its own framework.

Thanks for the fix, super useful.

robotconscience avatar Jun 20 '14 20:06 robotconscience