简体   繁体   English

在Xcode 8.1中添加外部框架

[英]Adding external framework in Xcode 8.1

I try to add FacebookSDK framework and GoogleSDK api. 我尝试添加FacebookSDK框架和GoogleSDK API。 But when i adding these kind of framework in xcode by dragging/add from target. 但是当我通过从目标拖动/添加在xcode中添加此类框架时。 *I got error.**ld: framework not found GoogleAppUtilities clang: error: linker command failed with exit code 1 (use -v to see invocation)* and Pod installation got error too... *我出错了。** ld:找不到框架GoogleAppUtilities clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)*,并且Pod安装也出错了...

enter image description here 在此处输入图片说明

enter image description here 在此处输入图片说明

You should try pod for installation these type of framework because download SDK for each site (fb,Google) having all network stuff for working independently. 您应该尝试使用Pod来安装这些类型的框架,因为每个站点(fb,Google)都需要下载SDK,该站点具有所有可以独立工作的网络资源。 So when you add or use any of two framework in same project they conflict with each other. 因此,当您在同一项目中添加或使用两个框架中的任何一个时,它们就会相互冲突。 Pod is the best way to manage framework dependency. Pod是管理框架依赖关系的最佳方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM