美文网首页
iOS 制作静态库 引用其他三方库报错解决

iOS 制作静态库 引用其他三方库报错解决

作者: 疯子码传 | 来源:发表于2021-04-15 15:11 被阅读0次

主要是前面的错误:

[!] The Podfile contains framework or static library targets (StaticKit), for which the Podfile does not contain host targets (targets which embed the framework).

If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

这大概的意思是说当前的target为静态库,而且pod依赖的是当前这个静态库不是依赖host targets,host targets我的理解是可执行的target,当时我没注意这个警告以为是普通的警告,之后添加到壳工程的时候会提示该静态库的pod找不到

当然最后如果我们认真看提示的警告已经告诉了我们解决的办法了,最后一行的括号内(e.g. a test target)。这就是让我们创建一个测试的target然pod依赖它就可以让这个警告消失。。

转载链接:https://www.jianshu.com/p/d25f9465cfa8

相关文章

网友评论

      本文标题:iOS 制作静态库 引用其他三方库报错解决

      本文链接:https://www.haomeiwen.com/subject/zgwdlltx.html