Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no viable overloaded '=' error on iOS 11

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'

enter image description here

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?

like image 382
Yalamandarao Avatar asked Sep 20 '17 12:09

Yalamandarao


1 Answers

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.

like image 94
Luiz Fernando Salvaterra Avatar answered Oct 23 '22 19:10

Luiz Fernando Salvaterra