I'm using pods to install AFNetworking (2.6.1) library on my project. Somehow #import AFNetworking.h return error as mentioned in title (AFNetworking.h file not found ). Does that have anything to do with Share Extension?
You will need to import AFNetworking as follows:
@import AFNetworking;
of
#import <AFNetworking/AFNetworking.h>
Still same error. If I switch to 2.4.1 then error is 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
:+1: any solution?
Can you give me your exact project setup? Or push up an example? I haven't been able to reproduce this so I'm struggling to debug it.
this might be a little unrelated now that i think about it but it looks like the cocoapods version is missing a bunch of files such as AFHTTPRequestOperationManager.

What does your podfile look like? Can you push up an example proj with the error?
target 'mobilepay' do
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'AFNetworking', '3.0.0-beta.1'
end
AFHTTPRequestOperationManager is not available in 3.0.0. It has been removed. Please see this guide.
@kcharwood First off, sorry for delay. My project's pod files were messed. I corrected it using following
def shared_pods
pod 'AFNetworking'
end
@virengujariya hi,my friends,I also encountered this problem for a long time.Unfortunately,can you tell me how to solve it. If you can, specific points can be?Thanks~~~
This is my first time to foreign friends to ask questions.
Most helpful comment
:+1: any solution?