Skip to content
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

The binary file is not permitted. #6624

Closed
aliza-khu opened this issue Apr 17, 2024 · 13 comments · Fixed by #6627
Closed

The binary file is not permitted. #6624

aliza-khu opened this issue Apr 17, 2024 · 13 comments · Fixed by #6627

Comments

@aliza-khu
Copy link

How frequently does the bug occur?

Always

Description

Facing the below issue while uploading the build on apple store:
ERROR: [ContentDelivery.Uploader] Asset validation failed (90171) Invalid bundle structure. The “.../RealmJS” 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

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

12.7.0

What services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

iOS 17.3

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Apr 17, 2024

➤ PM Bot commented:

Jira ticket: RJS-2804

@RemiHin
Copy link

RemiHin commented Apr 18, 2024

same issue

@kneth
Copy link
Contributor

kneth commented Apr 18, 2024

Thank you for reporting. We will investigate.

@kneth
Copy link
Contributor

kneth commented Apr 18, 2024

@aliza-khu @RemiHin Is it possible for you to remove https://github.com/realm/realm-js/blob/main/packages/realm/RealmJS.podspec#L46 (as in node_modules/realm/RealmJS.podspec) and try again. Our current hypothesis is that #6605 wasn't our brightest idea 😄

@RemiHin
Copy link

RemiHin commented Apr 18, 2024

This error occurred when I ran pod update after updating firebase from 18.x to 19.x.

After reverting all my changes and going through the updating process again, the error did not return.

Im uncertain to what i did different the second time.
Sorry, my problem was solved, but im afraid i wont be much help in debugging

@aliza-khu
Copy link
Author

@aliza-khu @RemiHin Is it possible for you to remove https://github.com/realm/realm-js/blob/main/packages/realm/RealmJS.podspec#L46 (as in node_modules/realm/RealmJS.podspec) and try again. Our current hypothesis is that #6605 wasn't our brightest idea 😄

@kneth, Not possible. Sorry!

@kneth
Copy link
Contributor

kneth commented Apr 18, 2024

@RemiHin Glad to hear that it is working for you

@aliza-khu No worries. Is it possible for you to share the podspec and/or package.json?

@c100k
Copy link

c100k commented Apr 18, 2024

@aliza-khu @RemiHin Is it possible for you to remove https://github.com/realm/realm-js/blob/main/packages/realm/RealmJS.podspec#L46 (as in node_modules/realm/RealmJS.podspec) and try again. Our current hypothesis is that #6605 wasn't our brightest idea 😄

@kneth I've just tried this and I've been able to upload the app without any issues 👍🏽

@Kreshnik
Copy link

Kreshnik commented Apr 18, 2024

I am also having the same issue

Asset validation failed Invalid bundle structure. The "AppName.app/RealmJS.bundle/RealmJS” binary file is not permitted. Your app cannot contain standalone executables or libraries

@juanbalofredo
Copy link

Im having the same issue tryind to submit IOS build on expo.
Already tried deleting node_modules/realm/RealmJS.podspec

[Application Loader Error Output]: ERROR: [ContentDelivery.Uploader] Asset validation failed (90171) Invalid bundle structure. The “BeingGathering.app/RealmJS.bundle/RealmJS” 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: 5e51b0ea-e724-45ee-9d26-c2c259bd1428)
[Application Loader Error Output]: Error uploading '/var/folders/p2/2788nfhd7xq3pnnk81v00sf00000gn/T/e5093b1a-e0ec-4210-9f42-9e6e9d712b91.ipa'.
[Application Loader Error Output]: Asset validation failed Invalid bundle structure. The “BeingGathering.app/RealmJS.bundle/RealmJS” 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: 5e51b0ea-e724-45ee-9d26-c2c259bd1428) (90171)
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.

"dependencies": {

"@expo/metro-config": "^0.10.7",
"@expo/react-native-action-sheet": "^4.0.1",
"@gorhom/bottom-sheet": "^4.4.5",
"@hookform/resolvers": "^2.9.10",
"@mapbox/geo-viewport": "^0.5.0",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/netinfo": "9.3.10",
"@react-native-firebase/analytics": "^17.4.2",
"@react-native-firebase/app": "^17.4.2",
"@react-native-picker/picker": "2.4.10",
"@react-navigation/bottom-tabs": "^6.4.3",
"@react-navigation/drawer": "^6.5.3",
"@react-navigation/material-top-tabs": "^6.5.1",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.2.2",
"@realm/babel-plugin": "^0.2.0",
"@realm/react": "^0.6.2",
"@reduxjs/toolkit": "^2.0.1",
"@rnmapbox/maps": "^10.1.0-rc.1",
"@shopify/flash-list": "1.4.3",
"axios": "^1.2.0",
"dayjs": "^1.11.9",
"eas-cli": "^6.0.0",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-plugin-react-native": "^4.0.0",
"expo": "^49.0.8",
"expo-apple-authentication": "~6.1.0",
"expo-application": "~5.3.0",
"expo-auth-session": "~5.0.2",
"expo-build-properties": "~0.8.3",
"expo-camera": "~13.4.4",
"expo-constants": "~14.4.2",
"expo-crypto": "~12.4.1",
"expo-dev-client": "~2.4.13",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.5",
"expo-font": "~11.4.0",
"expo-haptics": "~12.4.0",
"expo-image-manipulator": "~11.3.0",
"expo-image-picker": "~14.3.2",
"expo-insights": "~0.2.0",
"expo-linear-gradient": "~12.3.0",
"expo-linking": "~5.0.2",
"expo-location": "~16.1.0",
"expo-notifications": "^0.20.1",
"expo-random": "~13.2.0",
"expo-splash-screen": "~0.20.5",
"expo-sqlite": "~11.3.2",
"expo-status-bar": "~1.6.0",
"expo-store-review": "~6.4.0",
"expo-task-manager": "~11.3.0",
"expo-updates": "~0.18.19",
"expo-web-browser": "~12.3.2",
"i": "^0.3.7",
"jwt-decode": "^3.1.2",
"native-base": "^3.4.23",
"npm": "^10.5.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-freeze": "^1.0.3",
"react-hook-form": "^7.46.1",
"react-native": "0.72.10",
"react-native-bouncy-checkbox": "^3.0.7",
"react-native-gesture-handler": "~2.12.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-masked-text": "^1.13.0",
"react-native-pager-view": "6.2.0",
"react-native-reanimated": "3.3.0",
"react-native-render-html": "^6.3.4",
"react-native-root-toast": "^3.3.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0",
"react-native-tab-view": "^3.3.4",
"react-native-vector-icons": "^9.2.0",
"react-native-web": "~0.19.6",
"react-redux": "^8.0.4",
"realm": "^12.6.2",
"redux": "^4.2.0",
"redux-persist": "^6.0.0",
"rn-fetch-blob": "^0.12.0",
"uninstall": "^0.0.0",
"yup": "^0.32.11"

},

@aliza-khu
Copy link
Author

@kneth, I prepared the patch file to resolve the issue and now it's working for me.
Here is the patch file: realm+12.7.0.patch

@kneth
Copy link
Contributor

kneth commented Apr 19, 2024

@aliza-khu Thank you. In the same spirit I have created #6627.

@qhartman
Copy link

Thanks for turning this around so quick. Confirming that 12.7.1 fixes our problems submitting to Testflight.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants