How does Xcode find implicit target dependencies?

后端 未结 2 1687
迷失自我
迷失自我 2020-12-01 12:35

Xcode finds dependencies automatically sometimes. I think is is ok when I am the one who is defining the relationships and when I get lazy ...

But more than often I

2条回答
  •  粉色の甜心
    2020-12-01 13:22

    Xcode Dependency[About] is a dependency required to build a selected target.

    Implicit dependency

    • source code aka Non-compiled dependencies. Xcode allows to add a dependency from the whole workspace. A good example is a Project from GitHub or CocoaPods[About] with source code
    • closed code aka Precompiled dependencies aka External - external binary, CocoaPods, Carthage with closed code

    Implicit dependency is a dependency that is necessary to successfully build a target, but aren’t explicitly defined.

    1. No dependency in Build Phases -> Dependencies || Target Dependencies
    2. Specified in General -> Framework, Libraries, and Embedded Content||Embedded BinariesorLinked Frameworks and Libraries[Link vs Embed]

    To turn on this functionality[No such module]

    Edit Scheme -> Build -> Find Implicit Dependencies
    

    [Explicit dependency]

    [Vocabulary]

提交回复
热议问题