I have integrated realm in my project. I am working on swift 2.3 and when i am trying to run my project i am getting uncaught exception in below file and mentioned function and throws LogicError.
group_shared.hpp file
template <class O>
inline void SharedGroup::advance_read(O* observer, VersionID version_id)
{
if (m_transact_stage != transact_Reading)
throw LogicError(LogicError::wrong_transact_state);
// It is an error if the new version precedes the currently bound one.
if (version_id.version < m_read_lock.m_version)
throw LogicError(LogicError::bad_version);
_impl::History* hist = get_history(); // Throws
if (!hist)
throw LogicError(LogicError::no_history);
do_advance_read(observer, version_id, *hist); // Throws
}