Hello. I am having exactly the same issue.
I am using Unity3D game engine to build an iOS XCode project, so I don't really know how swift even works! Consequently, it is very difficult for me to fix this issue, so I would appreciate if you gave me a more precise fix for this problem please.
Thanks a lot for your time!!