It seems that you followed the steps on here and install our packaged uikit: Installing UIKit (deprecated) - Amity Docs which was marked as deprecated. Please migrate to opensource uikit per our recommendation in another topic: Installation via SPM is getting failed, and you should be able to update the code/change functions.
Note: We’re currently investigating the issue related to realm that you’re facing.