错误: "_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