NSBundle issue

I’m facing an issue in building the app in Xcode 13. It shows “function does not return nsstring” while building it from Xcode 13 command line tools.
Earlier it was running fine in Xcode 12.
I even referred many possible solutions like upgrading the kotlin and passing an argument while compile time.
Couldn’t get any lead.
Can anyone please help me with this issue.
P.S: I can’t share my code, but we can get in a call to see the issue.

Thank you