MSCollectionViewCalendarLayout 示例:体系结构的未定义符号
MSCollectionViewCalendarLayout example: undefined symbols for architecture
我想要 MSCollectionViewCalendarLayout 的示例编译并且 运行。
我完成的步骤:
- 已安装 CocoaPods
- 已下载项目
- 运行 pod install 在示例工程目录下
- 运行 来自 .xcworkspace 的项目
现在我得到了
Undefined symbols for architecture i386:
"_RKLogCoreDataError", referenced from:
___33-[RKEntityByAttributeCache load:]_block_invoke in libRestKit.a(RKEntityByAttributeCache.o)
___43-[RKManagedObjectImporter finishImporting:]_block_invoke in libRestKit.a(RKManagedObjectImporter.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试了here的提示,但是版本好像不对。
如何运行这个项目?
问题是,Podfile
中指定的 RestKit
版本 (0.22.0
) 与 Cocoapods 0.38.x
不兼容。切换到最新版本 0.24.1
应该可以解决此问题:
在 Podfile 中:
pod 'RestKit', '0.24.1'
我想要 MSCollectionViewCalendarLayout 的示例编译并且 运行。
我完成的步骤:
- 已安装 CocoaPods
- 已下载项目
- 运行 pod install 在示例工程目录下
- 运行 来自 .xcworkspace 的项目
现在我得到了
Undefined symbols for architecture i386:
"_RKLogCoreDataError", referenced from:
___33-[RKEntityByAttributeCache load:]_block_invoke in libRestKit.a(RKEntityByAttributeCache.o)
___43-[RKManagedObjectImporter finishImporting:]_block_invoke in libRestKit.a(RKManagedObjectImporter.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试了here的提示,但是版本好像不对。
如何运行这个项目?
问题是,Podfile
中指定的 RestKit
版本 (0.22.0
) 与 Cocoapods 0.38.x
不兼容。切换到最新版本 0.24.1
应该可以解决此问题:
在 Podfile 中:
pod 'RestKit', '0.24.1'