I just install Xcode 9 iOS 11 and build my iOS project. I am getting below error on Realm below error.
pod 'Realm', '~> 1.0.0'
Error:
/Pods/Realm/Realm/ObjectStore/results.cpp:489:20: error: no viable overloaded '='
m_notifier = std::make_shared<_impl::ResultsNotifier>(*this);
My project working fine on Xcode 8.3 iOS 10. Issue is facing only Xcode 9 iOS 11.
How can I fix this?
Try to change your podfile to the latest version of Realm
:
pod 'Realm'
This fix is up to version 2.8.1
, so you can type a min version:
pod 'Realm', '~> 2.8.1'
A little warning: If you are using a pod project
and it internally uses Realm
, do not forget to update your .podspec file, otherwise your final project will not update and you will continue to get the same error.