1

我正在尝试安装 Fabric 并按照说明进行操作(添加运行脚本构建阶段、构建、将文件拖放到项目中(复制)),一切看起来都很好。

但是,一旦我尝试运行该应用程序,就会收到大量错误:

ld: warning: directory not found for option '-F/Users/michael/Developer/Digicub/Mini2/MGBF2/APIs/ParseChat/Framework'
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_NSManagedObjectContext", referenced from:
      objc-class-ref in TwitterKit(TFSScribe.o)
  "_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from:
      objc-class-ref in TwitterKit(TFSScribe.o)
  "_OBJC_CLASS_$_NSManagedObject", referenced from:
      _OBJC_CLASS_$_TFSScribeEvent in TwitterKit(TFSScribeEvent.o)
      _OBJC_CLASS_$_TFSScribeImpression in TwitterKit(TFSScribeImpression.o)
  "_OBJC_CLASS_$_NSManagedObjectModel", referenced from:
      objc-class-ref in TwitterKit(TFSScribe.o)
  "_OBJC_CLASS_$_NSFetchRequest", referenced from:
      objc-class-ref in TwitterKit(TFSScribe.o)
  "_NSSQLitePragmasOption", referenced from:
      -[TFSScribe _setupManagedObjectContext] in TwitterKit(TFSScribe.o)
  "_NSInMemoryStoreType", referenced from:
      -[TFSScribe _setupManagedObjectContext] in TwitterKit(TFSScribe.o)
  "_OBJC_CLASS_$_NSEntityDescription", referenced from:
      objc-class-ref in TwitterKit(TFSScribe.o)
  "_OBJC_METACLASS_$_NSManagedObject", referenced from:
      _OBJC_METACLASS_$_TFSScribeEvent in TwitterKit(TFSScribeEvent.o)
      _OBJC_METACLASS_$_TFSScribeImpression in TwitterKit(TFSScribeImpression.o)
  "_NSSQLiteStoreType", referenced from:
      -[TFSScribe _setupManagedObjectContext] in TwitterKit(TFSScribe.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我重试了几次,卸载,重新安装。认为它可能与 Twitter.framework 冲突,但删除它没有任何效果。任何想法如何解决?

4

2 回答 2

1

根据@rmaddy 的评论,添加CoreData 框架有效。

于 2015-01-23T13:22:58.567 回答
0

您的捆绑包应如下所示:

在此处输入图像描述

于 2015-05-25T14:08:04.757 回答