从主版本导入AFNetworking和UIKIT + AFNetworking后,我在Xcode中遇到了8个解析问题。我还没有做任何事情,只是使用#import AFNetworking.h
并在AFHTTPRequestOperationManager.h
@property (readonly, nonatomic, strong) NSURL *baseURL;
错误是:
/workspace/MD/AFNetworking/AFHTTPRequestOperationManager.h:90:48: Expected member name or ';' after declaration specifiers
/workspace/MD/AFNetworking/AFHTTPRequestOperationManager.h:90:1: Property requires fields to be named
/workspace/MD/AFNetworking/AFHTTPRequestOperationManager.h:90:48: Expected ';' at end of declaration list
/workspace/MD/AFNetworking/AFHTTPRequestOperationManager.h:90:48: Expected an Objective-C directive after '@'
我也在AFHTTPSessionManager.h
收到相同的错误。我还没有使用任何类,我仍然遇到这些错误。有人可以解释一下我做错了什么吗?
答案 0 :(得分:1)
有一个相同的名称常量导致错误