1、在新建项目,引入CocoaPod时,当创建了podfile文件后,执行pod install时报一下错误
![](https://img2018.cnblogs.com/blog/801291/201904/801291-20190404151455816-1134704257.png)
2、这是因为 这个第三方不知道用于哪个target,所以必须指定target
解决方案:修改podfile文件,如下图
![](https://img2018.cnblogs.com/blog/801291/201904/801291-20190404151522331-718247111.png)
红色框里的为你的target 名字
3、随后,在执行 pod install 即可
![](https://img2018.cnblogs.com/blog/801291/201904/801291-20190404151556606-353238254.png)
至此,成功为新项目引入了CocoaPod
![](https://img2018.cnblogs.com/blog/801291/201904/801291-20190404151623645-794596045.png)
2、这是因为 这个第三方不知道用于哪个target,所以必须指定target
转载于:https://www.cnblogs.com/lovestarfish/p/10655045.html