How Do I Define a Host Target That Embeds a Framework Target?

前端 未结 1 445
野的像风
野的像风 2020-12-20 15:15

I have an existing workspace file in a directory whose sub-directories contain the Xcode project files. When I issue the \'pod install\' command (my pod version is 1.2.0) fr

相关标签:
1条回答
  • 2020-12-20 15:45

    Cocoa Pods is complaining that there is no target in the pod file that using the static library \ framework in the pod file.

    Take a look at this sample project

    tl;dr

    In case of static library you need to go to "build phases" in your 'host' project and add the static library as a "target dependency", also add the static library .a file in "link binary with libraries"

    The process for Frameworks is a little more confusing so I suggest to clone the sample project and take a look at the configuration.

    0 讨论(0)
提交回复
热议问题