My iOS app contains two custom swift embed framework, there named FWA and FWB here, and some 3rd party embed framework.
I compiled them as universal framework with bitcode, and archived my app.
I got error while I validating the archive –
2016-09-09 01:50:58 +0000 /var/folders/8d/6t4zhl296lx7_1nlg7qt5_j40000gn/T/XcodeDistPipeline.CDC/Root/Payload/MyAPP.app/Frameworks/FWB.framework: replacing existing signature 2016-09-09 01:50:58 +0000 /var/folders/8d/6t4zhl296lx7_1nlg7qt5_j40000gn/T/XcodeDistPipeline.CDC/Root/Payload/MyApp.app/Frameworks/FWB.framework: invalid resource directory (directory or signature have been modified)
Only FWB got this, FWA is fine.
Both them have same code-sign settings: iOS Developer, and same Provisioning Profile: Automatic.
Finally, I changed FWB’s Provisioning Profile as iOS Team Provisioning Profile: *, validate passed.
Maybe Xcode cannot find Provisioning Profile for FWA, so it is code-sign free framework.
However Xcode chosen incorrect Provisioning Profile for FWB, since it have similar bundle id with my app.