[英]Cocoapods path issue (iOS Swift)
I'm an XCode noob and I'm getting the following error when using Cocoapods to install AFNetworking: 我是XCode新手,使用Cocoapods安装AFNetworking时出现以下错误:
ld: library not found for -lPods-AFNetworking
Here's the composition of my bridge.h file: 这是我的bridge.h文件的组成:
#import <AFNetworking/AFNetworking.h>
Here's a screenshot of the Project navigation include the full error message, can someone help? 这是项目导航的屏幕截图,其中包含完整的错误消息,有人可以帮忙吗?
As I see from your screenshots you have opened the .xcodeproj
file. 从您的屏幕截图中可以看到,您已经打开了
.xcodeproj
文件。 When working with cocoapods you have to run via terminal: 使用可可足类时,您必须通过终端运行:
pod install
in the project directory and then you should open the .xcworkspace
file instead of the .xcodeproj
file for your project (the .xcworkspace
file is generated with the pod install
command). 在项目目录中,然后打开项目的
.xcworkspace
文件而不是.xcodeproj
文件( .xcworkspace
文件是使用pod install
命令生成的)。 This opens also the pods project which contains all the dependency projects contained in your podfile
. 这还将打开pods项目,其中包含
podfile
包含的所有依赖项项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.