I experienced the same problem and resolved it by following the steps.
- Open your Xcode project, select the target, and go to the General
tab.
- Scroll down to locate Frameworks, Libraries, and Embedded
Content.
- You will see your frameworks there.
- Select "Embed & Sign" from the dropdown menu for custom frameworks.
Here are the screenshots below.
