我将我的Realm for iOS Obj-C从0.98更新为1.0.1 但现在我们在编译过程中遇到了这些错误:
undef:__ ZN5realm4util23PlatformSpecificCondVarC1Ev undef: __ZN5realm4util23PlatformSpecificCondVarD1Ev民主基金:__ZNK5realm13TableViewBase16maximum_datetimeEmPm民主基金:__ZNK5realm5Table16maximum_datetimeEmPm民主基金:__ZNK5realm11StringIndex3getEmRNSt3__15arrayIcLm8EEE民主基金:__ZN5realm5Table12set_datetimeEmmNS_8DateTimeE民主基金:__ZN5realm9Allocator10do_reallocEmPKcmm民主基金:__ZNK5realm5Table16minimum_datetimeEmPm民主基金:__ZN5realm5QueryC1ERKNS_5TableERKNS_4util8bind_ptrINS_8LinkViewEEE民主基金:__ZNK5realm13TableViewBase16minimum_datetimeEmPm民主基金: __ZNK5realm5Table12get_datetimeEmm undef:__ ZN5realm14LinkListColumn19unregister_linkviewERKNS_8LinkViewE架构x86_64的未定义符号:
"境界:: util的:: PlatformSpecificCondVar :: PlatformSpecificCondVar()&#34 ;, 引自: realm :: SharedGroup :: SharedGroup(realm :: Replication&,realm :: SharedGroup :: DurabilityLevel,char const *,bool)in libRealm.a(shared_realm.o)
"境界:: util的:: PlatformSpecificCondVar ::〜PlatformSpecificCondVar()&#34 ;, 引自: realm :: SharedGroup :: SharedGroup(realm :: Replication&,realm :: SharedGroup :: DurabilityLevel,char const *,bool)in libRealm.a(shared_realm.o)
" realm :: TableViewBase :: maximum_datetime(unsigned long,unsigned long *) const",引用自: auto realm :: Results :: max(unsigned long):: $ _ 3 :: operator()(realm :: TableView const&) libRealm.a中的const(results.o)
" realm :: Table :: maximum_datetime(unsigned long,unsigned long *)const", 引自: auto realm :: Results :: max(unsigned long):: $ _ 3 :: operator()(realm :: Table const&)const in libRealm.a(results.o)" realm :: StringIndex :: get(unsigned long, std :: __ 1 :: array&)const",引自: 在libRealm.a(RLMArray.o)中的void realm :: StringIndex :: set(unsigned long,realm :: null) libRealm.a中的void realm :: StringIndex :: erase(unsigned long,bool)(RLMArray.o) libRealm.a中的void realm :: StringIndex :: erase(unsigned long,bool)(RLMArray.o) libRealm.a中的void realm :: StringIndex :: erase(unsigned long,bool)(RLMArray.o) 在libRealm.a(RLMQueryUtil.o)中,void realm :: StringIndex :: set(unsigned long,long long)
" realm :: Table :: set_datetime(unsigned long,unsigned long, realm :: DateTime)",引自: libmalm.a中的realm :: RowFuncs> :: set_datetime(unsigned long,realm :: DateTime)(RLMAccessor.o) libRealm.a(object_store.o)中的copy_property_values(realm :: Property const&,realm :: Property const&,realm :: Table&)
" realm :: Allocator :: do_realloc(unsigned long,char const *,unsigned long,unsigned long)",引自: vtable for realm :: libocalm.a中的Allocator(RLMArray.o)" realm :: Table :: minimum_datetime(unsigned long,unsigned long *)const", 引自: auto realm :: Results :: min(unsigned long):: $ _ 7 :: operator()(realm :: Table const&)const in libRealm.a(results.o)" realm :: Query :: Query(realm :: Table const&amp ;,, realm :: util :: bind_ptr const&)",引用自: realm :: Table :: where(realm :: util :: bind_ptr const&)在libRealm.a(RLMArrayLinkView.o)中
" realm :: TableViewBase :: minimum_datetime(unsigned long,unsigned long *) const",引用自: auto realm :: Results :: min(unsigned long):: $ _ 7 :: operator()(realm :: TableView const&) 在libRealm.a中的const(results.o)" realm :: Table :: get_datetime(unsigned long,unsigned long)const",引自: libmalm.a中的realm :: RowFuncs> :: get_datetime(unsigned long)const(RLMAccessor.o) libRealm.a(object_store.o)中的copy_property_values(realm :: Property const&,realm :: Property const&,realm :: Table&)
" realm :: LinkListColumn :: unregister_linkview(realm :: LinkView const&)", 引自: 在libRealm.a(RLMArray.o)中的realm :: LinkView :: ~LinkView()ld:找不到架构x86_64 clang的符号:错误:链接器 命令失败,退出代码为1(使用-v查看调用)
我正在使用cocoapods来安装它。谢谢!
答案 0 :(得分:1)
我最终将cocoapods降级为0.39.0 并做了这个
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
pod install
现在可以使用。