title: ERROR ITMS-90171: Invalid Bundle Structure - The binary file [CocoaPods file]
body: <p>Running into this error when uploading to the App Store:<br></p>
  
  <pre><code>ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'mobile.app/Frameworks/Pods_mobile.framework/Pods_mobile' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
  </code></pre>
  
  <p>I searched all similar posts and tried all of these suggestions:<br>
  - Always Embed Swift Standard Library = [true, false, $(inherited)]<br>
  - Build Phases -> Copy Bundle Resources -> Ensured its free of frameworks<br>
  - Ensured provisioning profile is set correctly.<br>
  - Build Active Architecture Only = [true, false]<br></p>
  
  <p><strong>Build Phases:</strong> <em><code>[CP] Embed Pods Frameworks</code></em> &amp; <em><code>[CP] Copy Pods Resource</code></em> seem normal:<br>
  <code>"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-frameworks.sh"</code><br>
  <code>"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-resources.sh"</code><br>
  respectively.
  <br><br>
  <strong>Podfile:</strong></p>
  
  <pre><code>platform :ios, '12.0'
  use_frameworks!
  
  target 'mobile' do
    pod ...
  end
  </code></pre>