title: iOS Validate archive failed with CFBundleIdentifier Collision & Invalid Bundle
body: <p>I archived my app and would like to upload the ipa file.<br>
  But, uploading was failed with these errors.  </p>
  
  <pre><code>App Store Connect Operation Error
  CFBundleIdentifier Collision. There is more than one bundle with the     CFBundleIdentifier value 'org.alamofire.Alamofire' under the iOS application     'MyApp.app'.
  
  App Store Connect Operation Error
  CFBundleIdentifier Collision. There is more than one bundle with the     CFBundleIdentifier value 'org.alamofire.AlamofireImage' under the iOS application 'MyApp.app'.
  
  App Store Connect Operation Error
  CFBundleIdentifier Collision. There is more than one bundle with the     CFBundleIdentifier value 'com.swiftyjson.SwiftyJSON' under the iOS application 'MyApp.app'.
  
  App Store Connect Operation Error
  Invalid Bundle. The bundle at 'MyApp.app/Frameworks/MyAppEmbedded.framework' contains disallowed nested bundles.
  
  App Store Connect Operation Error
  Invalid Bundle. The bundle at 'MyApp.app/Frameworks/MyAppEmbedded.framework' contains disallowed file 'Frameworks'.
  
  App Store Connect Operation Error
  Invalid Bundle. The bundle at 'MyApp.app/PlugIns/MyAppShare.appex' contains disallowed nested bundles.
  
  App Store Connect Operation Error
  Invalid Bundle. The bundle at 'MyApp.app/PlugIns/MyAppShare.appex' contains disallowed file 'Frameworks'.
  </code></pre>
  
  <p>Project use Swift, but some third party library use Objective-C.<br>
  These are my project structure.  </p>
  
  <p>Targets<br>
  MyApp          - Main App<br>
  MyAppEmbeddded - Embedded Framework<br>
  MyAppShare     - Share Extension<br>
  MyApp, MyAppEmbedded and MyAppShare use Carthage &amp; CocoaPods.<br>
  This is MyApp "Embedded Binaries" and "Linked Frameworks and Libraries"<br>
  <a href="https://i.stack.imgur.com/7uchV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7uchV.png" alt="enter image description here"></a>
  This is MyAppEmbedded "Linked Frameworks and Libraries"<br>
  <a href="https://i.stack.imgur.com/YGL2j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YGL2j.png" alt="enter image description here"></a>
  This is MyAppShare "Linked Frameworks and Libraries"<br>
  <a href="https://i.stack.imgur.com/aZsfG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aZsfG.png" alt="enter image description here"></a>
  CFBundleIdentifier Collision Error occurred "Alamofire", "AlamofireImage" and "SwiftyJSON".<br>
  These three framework are used by MyAppEmbedded.<br>
  So, I think Embedded Framework has something a cause.<br>
  Also, I noticed ipa content is strange.<br>
  Embedded Framework include three same Embedded Frameworks.<br>
  <a href="https://i.stack.imgur.com/VgbCX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VgbCX.png" alt="enter image description here"></a></p>
  
  <p>I read some questions about uploading errors and checked Build Settings.<br>
  MyApp: "Always Embed Swift Standard Libraries" is YES<br>
  MyAppEmedded &amp; MyAppShare: "Always Embed Swift Standard Libraries" is NO</p>
  
  <p>If you know about this error, please tell me about it.  </p>