There is no viable overloaded error "=" on iOS 11

I just installed Xcode 9 iOS 11 and am creating my iOS project. I get below errors in the area below errors.

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 works fine on Xcode 8.3 iOS 10. The problem only applies to Xcode 9 iOS 11.

How can i fix this?

+5
source share
1 answer

Try changing your file to the latest version of Realm :

 pod 'Realm' 

This fix is ​​prior to version 2.8.1 , so you can enter the minimum version:

 pod 'Realm', '~> 2.8.1' 

A little warning . If you use the pod project and use Realm inside it, do not forget to update your .podspec file, otherwise your final project will not be updated and you will continue to receive the same error.

+2
source

Source: https://habr.com/ru/post/1271979/


All Articles