Xcode dependencies across different build directories?

前端 未结 5 1167
我在风中等你
我在风中等你 2021-01-19 08:28

I am trying to set up Xcode for a project which contains multiple executables and static libraries. I have created multiple targets and set up the linking and dependencies,

5条回答
  •  花落未央
    2021-01-19 09:01

    Here is my solution for this weird behavior in xcode 4.3.1. You have to add build pre-action in scheme:

    rm -f ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}
    

    and choose which build settings to use for this script. Each time before build, target executable will be removed and rebuild completely. It helped for me, and i hope it helps you.

    NOTE: Have tried to put this script in project build phase, and result was negative - debugger could not connect process to start debugging.

    Good luck!

提交回复
热议问题