Adding AFNetworking to Watchkit

I have an existing iOS application and I am adding WatchKit support to the application. I installed the AFNetworking library using CocoaPods, and now I'm trying to include this in the InterfaceController using the line#import "AFNetworking.h"

It gives me an error AFNetworking.h file not found. I tried reinstalling the containers, but that didn't work.

+4
source share
2 answers

Put it in your Subfile

link_with 'yourProjectName', 'yourProjectName WatchKit Extension'
+3
source

This is not how to import containers into your project.

Try the following:

#import <AFNetworking.h>
+1
source

All Articles