Adding project as dependency in XCode 4.x

后端 未结 4 1063
名媛妹妹
名媛妹妹 2020-12-13 03:22

With the revamp of XCode I am having a lot of trouble working out how to add make one xcodeproj dependent on another. It was hard enough to work out before but now I am just

相关标签:
4条回答
  • 2020-12-13 03:53

    Ahhh just worked out that the reason the lib project was being added as a useless non-expanding item was because I had the lib project open in another window. XCode gave me no indication that this was what the problem was, so I was lucky to stumble across it.

    Once I had closed the other window I was able to add the lib project and it showed up correctly as an expandable subtree, as well as now being visible for selection in the app target dependencies.

    0 讨论(0)
  • 2020-12-13 03:55

    check out BuildKit project https://github.com/davidmorford/BuildKit . It damatically reduce project dependency management effort.

    0 讨论(0)
  • 2020-12-13 04:11

    The Xcode docs don't seem to be available online just now, so you'll have to search the documentation that came with Xcode for the following references. However, you'll find the information you're looking for under the following headings in Xcode Project Management Guide:

    • Managing Targets (Adding a Target Dependency)
    • Referencing Other Projects
    0 讨论(0)
  • 2020-12-13 04:13

    Dont forget to add the path to Classes of the lib project to tell your project where to find Header find

    • Go to build settings, find "Header Search Path", enter full path to the Classes folder
    0 讨论(0)
提交回复
热议问题