Adding a framework to XCode 4

前端 未结 2 480
孤独总比滥情好
孤独总比滥情好 2020-12-30 04:56

of course i did research before posting my question.

I looked at
How to "add existing frameworks" in Xcode 4?
Adding Framework in Xcode 4
Addin

相关标签:
2条回答
  • 2020-12-30 05:17

    After adding framework via "Add existing framework"

    • Go to Project Settings > Build Phases
    • In right bottom corner click Add buid phase > Copy Files
    • Select Destination > Frameworks
    • Drag&Drop framework to files list

    And that's it.

    0 讨论(0)
  • 2020-12-30 05:19

    Another important detail here - you must have the "Runtime search path" to be defined in the projects, it's empty by default.

    Something like this:

    LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks
    
    0 讨论(0)
提交回复
热议问题