How to include Apple 'frameworks' on Eclipse CDT

后端 未结 4 2030
一个人的身影
一个人的身影 2020-12-10 20:30

As a follow up to another question I recently asked, I realize my issue is that I don\'t know how to include Apple \'frameworks\' in the Eclipse CDT project properties so th

4条回答
  •  离开以前
    2020-12-10 20:58

    Since current Eclipse CDT releases don't perform sub-framework header inclusion correctly, you can avoid sub-framework problems (like those generated by the CoreServices header files) by creating symbolic links to the include directories of each sub-framework. I elaborated on this subject, which stems from danhan answer, in the following post:

    http://thegreyblog.blogspot.com/2014/02/how-to-include-apple-frameworks-headers.html

    In order to automate this process, I've created a Z shell script which automates this process and creates the symlink to the specified frameworks' header directory, together with the links to the include directory of each one of their sub-frameworks. The script can be found here: https://github.com/emcrisostomo/link-osx-framework-headers

    Hope this helps.

提交回复
热议问题