MSCollectionViewCalendarLayout example: undefined symbols for architecture

孤街浪徒 提交于 2019-12-13 01:56:02

问题


I want that the example of MSCollectionViewCalendarLayout compiles and run.

Steps I've done:

  • installed CocoaPods
  • downloaded project
  • run pod install in the Example project directory
  • run the project from the .xcworkspace

Now I'm getting

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)

I tried the tips from here, but the version seem to be wrong.

How can I run this project?


回答1:


Problem is, that RestKit version (0.22.0) specified in the Podfile is not compatible with Cocoapods 0.38.x. Switching to latest version 0.24.1 should fix this:

In Podfile:

pod 'RestKit', '0.24.1'


来源:https://stackoverflow.com/questions/31704466/mscollectionviewcalendarlayout-example-undefined-symbols-for-architecture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!