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.
source share