Include Headers from added frameworks on Xcode

前端 未结 5 1519
無奈伤痛
無奈伤痛 2021-01-30 20:52

I want to work with some frameworks like glew and cg so i manually added

the needed frameworks to my project by right clicking the project ->

5条回答
  •  清歌不尽
    2021-01-30 21:40

    For those whose autocomplete fails after adding framework.

    I used to add frameworks, by going to Build Phases and taking the Link Binary with Libraries option. Now in XCode 6.1, though project was building fine, autocomplete in XCode was not working.

    So what needs to be done is:

    1. Remove the already added framework from Project Navigator and also from Link Binary with Libraries.
    2. Add framework to project by simply File -> Add Files to option in XCode.

    And auto complete will start working.

提交回复
热议问题