[英]Linking error Xcode 7.2: Framework Not Found
I have been trying to find a solution to this problem for hours. 数小时以来,我一直在寻找解决此问题的方法。 Every time I try to build my project, I get the same error: 每次尝试构建项目时,都会出现相同的错误:
ld: framework not found SwiftHTTP ld:找不到框架SwiftHTTP
I tried following the instructions in this question but to no avail. 我尝试按照此问题中的说明进行操作,但无济于事。
Are there any ideas as to what else I may be doing wrong? 关于我可能还会做错什么的任何想法?
As mentioned in comments, OP accessed the project via .xcproject
instead of .xcworkspace
, thus the framework is not loading. 如评论中所述,OP通过.xcproject
而不是.xcworkspace
访问项目,因此不会加载框架。 To solve the problem (and restore to recommended settings by Cocoapods), follow the steps below: 要解决此问题(并通过Cocoapods恢复到推荐的设置),请按照以下步骤操作:
pod update
in the Project folder to restore the settings 在终端中,在“项目”文件夹中发出“ pod update
”以恢复设置 .xcworkspace
and build the project Cocoapods完成运行后,打开.xcworkspace
并构建项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.