2

我将 iOS Obj-C 的 Realm 从 0.98 更新到 1.0.1,但现在我们在编译过程中遇到了这些错误:

undef: __ZN5realm4util23PlatformSpecificCondVarC1Ev undef: __ZN5realm4util23PlatformSpecificCondVarD1Ev undef: __ZNK5realm13TableViewBase16maximum_datetimeEmPm undef: __ZNK5realm5Table16maximum_datetimeEmPm undef: __ZNK5realm11StringIndex3getEmRNSt3__15arrayIcLm8EEE undef: __ZN5realm5Table12set_datetimeEmmNS_8DateTimeE undef: __ZN5realm9Allocator10do_reallocEmPKcmm undef: __ZNK5realm5Table16minimum_datetimeEmPm undef: __ZN5realm5QueryC1ERKNS_5TableERKNS_4util8bind_ptrINS_8LinkViewEEE undef: __ZNK5realm13TableViewBase16minimum_datetimeEmPm undef: __ZNK5realm5Table12get_datetimeEmm undef: __ZN5realm14LinkListColumn19unregister_linkviewERKNS_8LinkViewE Undefined symbols for architecture x86_64:
“realm::util::PlatformSpecificCondVar::PlatformSpecificCondVar()”,引用自:realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool) in libRealm.a( shared_realm.o)
"realm::util::PlatformSpecificCondVar::~PlatformSpecificCondVar()",引用自:realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool)在 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(results.o) 中的 const
“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",引用自:void realm::StringIndex::set(unsigned long, realm: :null) 在 libRealm.a(RLMArray.o) 中 void realm::StringIndex::erase(unsigned long, bool) 在 libRealm.a(RLMArray.o) 中 void realm::StringIndex::erase(unsigned long, bool) 在libRealm.a(RLMArray.o) void realm::StringIndex::erase(unsigned long, bool) 在 libRealm.a(RLMArray.o) void realm::StringIndex::set(unsigned long, long long) 在 libRealm.a (RLMQueryUtil.o)
“realm::Table::set_datetime(unsigned long, unsigned long, realm::DateTime)”,引用自:realm::RowFuncs >::set_datetime(unsigned long, realm::DateTime) in libRealm.a(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::Allocator in libRealm.a(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&, realm::util::bind_ptr const&)",引用自:libRealm 中的 realm::Table::where(realm::util::bind_ptr const&) .a(RLMArrayLinkView.o)
“realm::TableViewBase::minimum_datetime(unsigned long, unsigned long*) const”,引用自:auto realm::Results::min(unsigned long)::$_7::operator()(realm::TableView const&) const in libRealm.a(results.o) "realm::Table::get_datetime(unsigned long, unsigned long) const",引用自:realm::RowFuncs >::get_datetime(unsigned long) const in libRealm.a(RLMAccessor .o) libRealm.a(object_store.o)
"realm::LinkListColumn::unregister_linkview(realm::LinkView const&)" 中的 copy_property_values(realm::Property const&, realm::Property const&, realm::Table&),引用自: libRealm.a(RLMArray.o) 中的 realm::LinkView::~LinkView() ld: 未找到架构 x86_64 的符号 clang: 错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我正在使用 cocoapods 来安装它。谢谢!

4

1 回答 1

1

我最终将 cocoapods 降级到 0.39.0 并做到了这一点

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
pod install

这暂时有效。

于 2016-06-19T21:48:40.867 回答