常见错误2

来源:互联网 发布:c语言中log怎么表示 编辑:程序博客网 时间:2024/06/08 01:17

错误:       "_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from:

      objc-class-ref in libEaseMobClientSDKLite.a(EMDBManagerBase.o)


Undefined symbols for architecture i386:

  "_NSInMemoryStoreType", referenced from:

      -[XMPPCoreDataStorage addPersistentStoreWithPath:options:error:] in XMPPCoreDataStorage.o

  "_NSInferMappingModelAutomaticallyOption", referenced from:

      -[XMPPCoreDataStorage defaultStoreOptions] in XMPPCoreDataStorage.o

  "_NSManagedObjectContextDidSaveNotification", referenced from:

      -[XMPPCoreDataStorage mainThreadManagedObjectContext] in XMPPCoreDataStorage.o

  "_NSMigratePersistentStoresAutomaticallyOption", referenced from:

      -[XMPPCoreDataStorage defaultStoreOptions] in XMPPCoreDataStorage.o

  "_NSSQLiteStoreType", referenced from:

      -[XMPPCoreDataStorage addPersistentStoreWithPath:options:error:] in XMPPCoreDataStorage.o

  "_OBJC_CLASS_$_CLLocation", referenced from:

      objc-class-ref in XMPPvCardTemp.o

  "_OBJC_CLASS_$_NSAttributeDescription", referenced from:

      objc-class-ref in XMPPCoreDataStorage.o

  "_OBJC_CLASS_$_NSEntityDescription", referenced from:

      objc-class-ref in XMPPMessageArchivingCoreDataStorage.o

      objc-class-ref in XMPPRoomHybridStorage.o

      objc-class-ref in XMPPGroupCoreDataStorageObject.o

      objc-class-ref in XMPPCapabilitiesCoreDataStorage.o

      objc-class-ref in XMPPvCardCoreDataStorageObject.o

      objc-class-ref in XMPPUserCoreDataStorageObject.o

      objc-class-ref in XMPPRosterCoreDataStorage.o



回答: 

   在build phases 里增加coredata.framework



0 0
原创粉丝点击