-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't publish to appstore or testflight due to numpy, how to solve #2161
Comments
This is an issue with numpy itself. Luckily, it's a problem that is reasonably straightforward to address in the specific case; there might be a general fix we could apply as well. The issue is that, for some reason, the numpy wheel includes So - the fix here is to just delete them as part of the packaging process. Briefcase even provides a hook for this kind of cleanup. If you add Arguably, this is a cleanup pattern we should add as a default across the board; |
Thanks for the quick reply! I will try it later. However personally I think that in case we want to support potential edge cases an opt in for those makes more sense, instead of a opt out for all other users. But also like you said there is no way to release an app with the .a files so maybe no need to support it. At the very minimal for now we might want to document it at : https://briefcase.readthedocs.io/en/stable/reference/platforms/iOS/xcode.html |
I agree - hence my hesitance to making this a default cleanup action.
Agreed - although, it also needs to be mentioned on the macOS app and Xcode docs, as it's an issue that will also affect submission to the macOS App Store. That's slightly less critical, as distribution outside the App Store is still an option - but given it's a known issue, it should be documented as a platform quirk. |
Update: The macOS issue is slightly different - macOS doesn't enforce the "no binaries outside Frameworks" limitation, but it is subject to issues of binary merging which NumPy in particular will trigger. |
Describe the bug
See belown error, it seems that 2 numpy files are currently not permitted in my app, how can I solve this issue?
2025-02-15 09:19:23.641 *** Error: Validation failed Invalid bundle structure. The “AutoTimesheets.app/app_packages/numpy/random/lib/libnpyrandom.a” 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: f452ffd8-4f1b-4e52-a343-de64704b746c) (409)
{
NSLocalizedDescription = "Validation failed";
NSLocalizedFailureReason = "Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/random/lib/libnpyrandom.a\U201d 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: f452ffd8-4f1b-4e52-a343-de64704b746c)";
NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 "Validation failed" UserInfo={status=409, detail=Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/random/lib/libnpyrandom.a\U201d 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=f452ffd8-4f1b-4e52-a343-de64704b746c, code=STATE_ERROR.VALIDATION_ERROR, title=Validation failed, NSLocalizedFailureReason=Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/random/lib/libnpyrandom.a\U201d 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, NSLocalizedDescription=Validation failed}";
"iris-code" = "STATE_ERROR.VALIDATION_ERROR";
}
2025-02-15 09:19:23.641 *** Error: Validation failed Invalid bundle structure. The “AutoTimesheets.app/app_packages/numpy/core/lib/libnpymath.a” 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: 3e818e4d-2859-4288-8f9f-80c53f7b743e) (409)
{
NSLocalizedDescription = "Validation failed";
NSLocalizedFailureReason = "Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/core/lib/libnpymath.a\U201d 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: 3e818e4d-2859-4288-8f9f-80c53f7b743e)";
NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 "Validation failed" UserInfo={status=409, detail=Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/core/lib/libnpymath.a\U201d 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=3e818e4d-2859-4288-8f9f-80c53f7b743e, code=STATE_ERROR.VALIDATION_ERROR, title=Validation failed, NSLocalizedFailureReason=Invalid bundle structure. The \U201cAutoTimesheets.app/app_packages/numpy/core/lib/libnpymath.a\U201d 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, NSLocalizedDescription=Validation failed}";
"iris-code" = "STATE_ERROR.VALIDATION_ERROR";
}
Steps to reproduce
Expected behavior
The app to upload without warnings
Screenshots
No response
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: