Restkit今天突然停止编译了 [英] Restkit has suddenly stopped compiling today
问题描述
我很长时间以来一直在我的项目中使用 RestKit,使用 CocoaPods.
Podfile:pod 'RestKit', '~>0.26.0'
今天,由于未知原因,我的项目不再编译.据我所知,我没有更改任何项目设置或任何内容.
我在 RKObjectManager.h 中得到错误:
/projects/iphone/Pods/Headers/Public/RestKit/Network/RKObjectManager.h:892:49:未知类型名称AFNetworkReachabilityStatus";您的意思是SCNetworkReachabilityFlags"吗?
如果我进入 h.file 并单击 ReachabilityStatusEnum,我可以看到它,所以它似乎就在那里,尽管它说的是未知类型".
我不知道如何解决这个问题.我很久以前设置时遵循了 RestKit cocoapods 说明.可能是因为我最近升级了 xcode?p>
非常感谢指点...
好的,所以最后,我不得不将它添加到 .pch 文件中.我从来没有在那里拥有过它,我的项目在没有它的情况下已经建立了一年多.很高兴知道为什么我突然不得不包括它...
#if __IPHONE_OS_VERSION_MIN_REQUIRED#import #import #别的#import #import #万一
I am using RestKit in my project since a long time, using CocoaPods.
Podfile:pod 'RestKit', '~> 0.26.0'
Today, for unknown reasons, my project doesn't compile anymore. To the best of my knowledge, i have not changed any project settings or anything.
I get the error in RKObjectManager.h:
/projects/iphone/Pods/Headers/Public/RestKit/Network/RKObjectManager.h:892:49:
Unknown type name 'AFNetworkReachabilityStatus'; did you mean 'SCNetworkReachabilityFlags'?
If i go into the h.file and click on the ReachabilityStatusEnum, i can see it, so it seems to be there although it says 'Unknown Type'.
I am at a loss as to how fix this. I followed the RestKit cocoapods instructions when i set it up a long time ago. Could it be because i upgraded xcode recently?
Very thankful for pointers...
OK, so in the end, i had to add this to the .pch file. I have never had it there, and my project has built for over a year without it. Would be great to know why i suddenly had to include it...
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#else
#import <SystemConfiguration/SystemConfiguration.h>
#import <CoreServices/CoreServices.h>
#endif
这篇关于Restkit今天突然停止编译了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!