Your app cannot contain standalone executables or libraries

Hello, I can deploy a app using Xcode directly to my iPhone. When I archive the project and want to validate the app (or distribute the app) I get an error to all *.so and *.dylib files like

Asset validation failed

Invalid bundle structure. The “lebcas.app/lib/python3.11/site-packages/PIL/.dylibs/libtiff.6.dylib” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 65425f02-4d3c-4ed7-906b-73a6fba3e5b5)

I could not find any information on how to fix the error in the link. Do you have any hint how to solve this issue?

Your app cannot contain standalone executables or libraries
 
 
Q