Cause
It happens if your HostApp embeds a framework which has been also embedded in some of the frameworks which are also being embedded in HostApp. For example,
- Host
Hembeds frameworkF1and frameworkF2 - Framework
F1embeds frameworkF2 - Thus, Framework
F2will be duplicated in bundle after IPA generated
Solution
Only HostApp but no other frameworks should embed any dependent frameworks in their respective Build Phase. So,
- Go to Build Phase tab for
F1 - Remove
F2fromEmbed Frameworksstep, or remove full step - Go to General tab for
F1 - Select Frameworks, Libraries and Embedded Content
- Select
Do Not Embedoption forF2
Have a clean build.