Please verify if you are not uploading adhoc ipa which is by default stripped of Swift files.
In my case - that kind of checking in fastlane script and explicitly specifying the correct ipa file helped.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: