I managed to find a solution, I deleted the question on SO because of the downvotes. But if anyone else encounters this issue, this is what I did:
Go to the Build Settings of your widget and intent extension. In both the extensions search for "Intent Class Generation Language" under the "Intent Definition Compiler - Code Generation" section.
Then change it from "Automatic" to "Swift".
Still thanks to the people who tried to help. I hope I can help some people out with this.
Topic:
Programming Languages
SubTopic:
Swift
Tags: