How do you get implicit dependencies to work with workspaces in Xcode 4?

前端 未结 6 2068
太阳男子
太阳男子 2020-12-02 13:36

I want to manage projects in workspaces using Xcode 4 with Cocoa Touch Static Library projects which contain shared code that I could reference from other projects. Accordin

6条回答
  •  日久生厌
    2020-12-02 14:04

    I got this to work by doing the following. 1. Adding the Library as a second project to the workspace. 2. Link Binary with Libraries > Add the static library.

    -- THE IMPORTANT PART --

    1. Add the following to the "Header Search Paths" under build settings

      ${BUILT_PRODUCTS_DIR}

    This will link the built header files to the project. No more build errors.

提交回复
热议问题