Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR ITMS-90171: Invalid Bundle Structure - The binary file [CocoaPods file]

Running into this error when uploading to the App Store:

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."

I searched all similar posts and tried all of these suggestions:
- Always Embed Swift Standard Library = [true, false, $(inherited)]
- Build Phases -> Copy Bundle Resources -> Ensured its free of frameworks
- Ensured provisioning profile is set correctly.
- Build Active Architecture Only = [true, false]

Build Phases: [CP] Embed Pods Frameworks & [CP] Copy Pods Resource seem normal:
"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-frameworks.sh"
"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-resources.sh"
respectively.

Podfile:

platform :ios, '12.0'
use_frameworks!

target 'mobile' do
  pod ...
end
like image 752
Sami Avatar asked Nov 27 '19 00:11

Sami


1 Answers

I needed to remove Pods_mobile.framework under Embed Frameworks as shown below. I'm not sure how it got there, but assumed it had its purpose since I didn't add it in the first place.

enter image description here

like image 95
Sami Avatar answered Sep 17 '22 21:09

Sami