Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown type name 'AFNetworkReachabilityStatus', RestKit suddenly stop working

My application stops compiling today, and it has been working for a couple of month with RestKit. I did not change any code. What I did is only run the pod install command again.

I have tried the method. This issue is already 3 years ago. I am using Swift, so I do not have the .pch file.

What I did is manually create the Prefix.pch file insert the code. It does not work for me. I also added the import into the Briding-Header file, also does not work.

Does anyone have the same problem with me?

Error message:

enter image description here

Xcode: 7.2.1 RestKit: 0.25.0 AFNetworking: 1.3.4

like image 649
Joe SHI Avatar asked Sep 11 '25 00:09

Joe SHI


1 Answers

If you are using use_frameworks! you need to import your modules using @import. I think you need the import for both your custom framework and the RestKit.

Maybe you can also check my answer here about how to set up the bridging-header here

If it still does not work, please put the code that you are using to import the modules and I will try to help you forward. Let me know how it goes

like image 58
Catalina T. Avatar answered Sep 12 '25 15:09

Catalina T.