使用领域时出现间歇性链接程序和构建错误

时间:2019-01-31 14:05:52

标签: ios swift realm linker-errors xcode10

我正在使用领域cocoapods版本

pod 'RealmSwift', '~> 2.8.1' //pod 'RealmSwift'

在我的一个旧项目项目中,链接给了我很多错误。如:

Undefined symbols for architecture i386:

  "realm::_impl::TransactLogEncoder::select_table(unsigned long, unsigned long, unsigned long const*)", referenced from:
      realm::_impl::TransactReverser::select_table(unsigned long, unsigned long, unsigned long const*) in transact_log_handler.o
  "realm::SlabAlloc::reset_free_space_tracking()", referenced from:
      realm::Group::reset_free_space_tracking() in transact_log_handler.o
  "realm::SharedGroup::commit_and_continue_as_read()", referenced from:
      realm::_impl::SharedGroupFriend::commit_and_continue_as_read(realm::SharedGroup&) in transact_log_handler.o
  "realm::util::StringBuffer::reallocate(unsigned long)", referenced from:
      realm::util::StringBuffer::reserve(unsigned long) in transact_log_handler.o
  "realm::BinaryColumn::get_at(unsigned long, unsigned long&) const", referenced from:
      realm::BinaryIterator::get_next() in transact_log_handler.o
  "realm::SharedGroup::grab_read_lock(realm::SharedGroup::ReadLockInfo&, realm::VersionID)", referenced from:
      bool realm::SharedGroup::do_advance_read<realm::_impl::NullInstructionObserver>(realm::_impl::NullInstructionObserver*, realm::VersionID, realm::_impl::History&) in transact_log_handler.o
      bool realm::SharedGroup::do_advance_read<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, realm::VersionID, realm::_impl::History&) in transact_log_handler.o
      bool realm::SharedGroup::do_advance_read<(anonymous namespace)::KVOTransactLogObserver>((anonymous namespace)::KVOTransactLogObserver*, realm::VersionID, realm::_impl::History&) in transact_log_handler.o
      bool realm::SharedGroup::do_advance_read<(anonymous namespace)::TransactLogObserver>((anonymous namespace)::TransactLogObserver*, realm::VersionID, realm::_impl::History&) in transact_log_handler.o

这似乎与https://github.com/realm/realm-cocoa/issues/2393

有关

所以我尝试了

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

以解决问题,但不幸的是它无法正常工作。有人可以建议我解决这个问题吗?任何帮助将不胜感激。

0 个答案:

没有答案