我"pod update",我的RestKit版本现在是0.25.0,我的RKValueTransformers是1.1.2,并且出现错误“RKObjectMapping.h not found”。
RestKit在新版本中有什么改变,我在它的github上找不到任何东西。
以下步骤可以重现错误:
1)创建新项目
2) pod初始化
Podfile如下所示:
platform :ios, '8.3'
#pod 'RestKit', '~> 0.20.0'
#pod 'RestKit', '~> 0.24.1'
pod 'RestKit'在不同版本的所有情况下,问题都是相同的
3)打开.xcworkspace
4)在视图控制器中。
#import <RestKit/ObjectMapping/RKObjectMapping.h>
#import <RestKit/ObjectMapping/RKRelationshipMapping.h>
#import <RestKit/Network/RKResponseDescriptor.h>
#import <RestKit/Network/RKObjectRequestOperation.h>
#import <RestKit/Support/RKLog.h>
#import <RestKit/CoreData/RKEntityMapping.h>
#import <RestKit/Network/RKObjectManager.h>或
#import "RKObjectMapping.h"
#import "RKRelationshipMapping.h"
#import "RKResponseDescriptor.h"
#import "RKObjectRequestOperation.h"
#import "RKLog.h"
#import "RKEntityMapping.h"
#import "RKObjectManager.h"错误仍然存在:在RestKit Pod的文件中找不到“RKObjectMapping.h
注意:我使用的是Xcode7-Beta5,Objective-C
发布于 2016-01-16 01:41:44
我想,这个问题终于在RestKit的开发分支中得到了修复,最终的补丁是1d8f3e332。
希望它很快就能合并到master中。
现在,如果你觉得勇敢,你可以使用
pod 'RestKit', :git => 'git@github.com:RestKit/RestKit.git', :commit => '1d8f3e3325d959094a3f96c832bf9f54c9c48df3'发布于 2015-10-21 21:43:14
我通过构建pod作为框架解决了这个问题。
use_frameworks!https://stackoverflow.com/questions/32562446
复制相似问题