AFNetworking/AFHTTPClient.h:88:10: - ios

427 views Asked by At
In file included from /Users/project/API.m:9:
In file included from /Users/project/API.h:9:
/Users/project/../AFNetworking/AFHTTPClient.h:88:10: warning: MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. [-W#warnings]
#warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.
  • any help is very appreciated.
2

There are 2 answers

1
Vaibhav Gautam On

click on project name from left pane -> on right hand select summary -> click "+" button -> add "MobileCoresServices.Framework"

Save it

clean it

run it

0
Jai Govindani On

Step 1 - Follow answer above to link agains the MobileCoreServices framework. You've done that, as per your screenshot

Step 2 - Include the following lines in your PCH (Precompiled Header) file. This file should be called PROJECTNAME-Prefix.PCH

 #import <MobileCoreServices/UTCoreTypes.h>
 #import <MobileCoreServices/MobileCoreServices.h>

Then you should be good to go!