I am receiving the following error from XCode 8.1 when trying to submit a previously successful submitted app version upgrade:
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'Particle.app/Particle_armv7' is not permitted. Your app can’t contain standalone executables or libraries, other than the 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."
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'Particle.app/Particle_armv7' is not permitted. Your app can’t contain standalone executables or libraries, other than the 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 did not modify anything in regards to architectures this build.
Any idea where I should look to solve this problem?
This error occurs when a static library file is mistakenly copied into the app bundle.
You should link the libYourLibrary.a static library via a Link Binary with Libraries build phase.
It should NOT be added to the target's Copy Bundle Resources build phase.
Ok, the problem was that there was an extra build variant specified as "armv7" in the build settings. No idea why. Reverting to "normal" only fixed this issue.
from project.pbxproj:
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
- BUILD_VARIANTS = (
- armv7,
- normal,
- );
+ BUILD_VARIANTS = normal;
removed lines marked with - added lines with +
Issue - two binaries were included in bundle:
Fix - make sure only "normal" is under Build variants:
Related
Versions
Python :3.9
MacOS version :12.1
XCode Version :13.1
Cython version :
Describe the bug
I wanted to distribute my app on apple store, I made the validation process and after that I have this two error
don't understand why because before I used the same python library to distribute another application.
what I did different to before is I try to use firebase push notification with pod but not work so a removed it
I use firebase for my database so I install Pyrebase for the request. Like Pyrebase didn't install well i put the folder from GitHub directly on my source folder et install cloud after that to make it work well. but its not the problem because I already used this configuration on other application
Expected behavior
normaly it have to run validation without issue but don't understand why
Logs
App Store Connect Operation Error
Invalid Bundle Structure - The binary file '$myapp$.app/lib/python3.9/site-packages/google/protobuf/pyext/_message.cpython-39-darwin.so' 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.
App Store Connect Operation Error
Invalid Bundle Structure - The binary file '$myapp$.app/lib/python3.9/site-packages/google/protobuf/internal/_api_implementation.cpython-39-darwin.so' 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.
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'School Diary.app/NewEventsCustomTableViewCell.o' 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."
while uploading app to app store in Xcode12 getting this error.
You have to copy all the content of the NewEventsCustomTableViewCell.swift file. Delete the file. Make a new file give same name and paste in the copied text of the deleted file.
This will solve your problem.
I am having issues with Build on X Code. I am getting this error.
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx.app/app/tns_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node' is not permitted. Your app can’t contain standalone executables or libraries, other than the 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."
The reason behind this error is that one of my dev Dependencies was inside dependencies object in package.json file.
As fse.node is related with "nativescript-dev-sass": "^1.0.0-rc.2" I just moved it from dependecies to devDependencies and error was gone.
I am trying to submit to Apple with bitCode enabled. Everytime i submit I am getting this email.
We have discovered one or more issues with your recent delivery for "MyAPPP". To process your delivery, the following issues must be corrected:
Unexpected CFBundleExecutable Key - The bundle at '/Payload/MyAPPP.app/Base.lproj' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue.
Once these issues have been corrected, you can then redeliver the corrected binary.
My application's info.plist has following.
Cocoa Pods for every pod has info.plist as
All Pods are here.
I faced the same issue. Finally I got a solution.
In my case, Info.plist file was added to Copy Bundle Resources in Build Phase. I just remove it from Copy Bundle Resources and it worked!
In my Swift iOS application I've just added Flurry Analytics by creating a briding-header.h and importing Flurry.h. I then added SystemConfiguration.framework, CFNetwork.framework, and Security.framework.
I then added libFlurry_6.5.0.a via Targets -> Build Phases -> Link Binary with Libraries after instruction from a Stack Overflow question because it wouldn't build.
After archiving the app I tried to upload it and received this error:
ERROR ITMS-90171: “Invalid Bundle Structure - The binary file
‘APPNAME.app/Flurry/libFlurry_6.5.0.a’ is not permitted. Your app
can’t contain standalone executables or libraries...
Open the Build Phases tab in the target settings for your project.
Make sure that Flurry.framework is not included under Copy Bundle Resources.
From Invalid Bundle Structure.
My case was a bit different. I added an static library to "Embed Frameworks" and I got a couple of errors when I uploaded the app to the app store:
The binary X is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles
Invalid Swift Support - Doesn't have the correct file type for this location
I removed this dependency and the problem was solved