The first report cannot find interface declaration for ' UIImage or use of undeclared identifier ' UIImage ' when we want to import this frame on the error page
' #import
The second error, in the AFSECURITYPOLICY.M class, will report such three errors
1. Use of undeclared identifier ' Ksecformatunknown '
2. Use of undeclared identifier ' Ksecitempemarmour '
3. Implicit declaration of function ' Secitemexport ' is invalid in C99
The solution is:
25//#if! Target_os_ios &&! Target_os_watch
#if!defined (__iphone_os_version_min_required)
44//#if Target_os_ios | | Target_os_watch
#if defined (__iphone_os_version_min_required)
The third if you use the 2.0 version of the data please have an error
Workaround:
Text/html is not supported by default in Afnetworking 2.0
AFURLRESPONSESERIALIZATION.M-self.acceptablecontenttypes = [Nsset setwithobjects:@ "Application/json", @ "text/ JSON ",
@ "Text/javascript", nil]; Add @ "text/html"
Afnetworing Import Error Solution