An update to Alex’s answer:
In my case it was a React-Native project after adding a Swift Pods library. Maybe just the step 2 can work:
- Adding a new Swift file and a Brigde header:
1) File -> New -> File
2) Select Swift File
3) Confirm Create Bridging Header
- Go to
Build Settings
and setAlways Embed Swift Standard Libraries
toYES