-
Notifications
You must be signed in to change notification settings - Fork 107
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
"Invalid Segment Alignment. The app binary at '/Frameworks/Razorpay.framework/Razorpay' does not have proper segment alignment. #53
Comments
@rajaishwary In a framework - images of architecture x86_64 and i386 are provided so that the consumer of the framework is able to compile and run on a simulator. But, when you are uploading your application, you have to strip those architecture images from all the frameworks. If you use cocoapods, it does it for you. But, as you must not be using cocoapods, the task of striping these images relies on you. I am attaching a script file. Download the file, change it's extension from .txt to .sh and run the script on the framework and then upload you ipa on itunes. |
@AbhinavArora95 I'm getting similar error while uploading its working fine on dev. |
@dlucidone You would have run the script on the framework and tried to build and run the thing on simulator. You are getting a crash because as mentioned above, running the script removes the architectures of simulators from the framework. And after removing the images of simulators you can't run the same on it. |
@AbhinavArora95 By running the script mean (What I have done ) - Am I doing something wrong? |
Facing the same issue any possible solution for this .? |
@Prateek479 Use the shell script to strip the SDK for the production and then use the production SDK in creating release. The production sdk will throw error if you will run it in simulator. |
I'm just now starting to see this issue, have had PureLayout in my project for a while. I hadn't updated anything with carthage other than running a Is this script the same thing that Carthage has me set up for a "run script phase"? Oh whoops, another link was to the PureLayout repo so I thought I was there. Sorry for the off topic question. Though... I'm gonna leave it in case anyone can tell me what I might've done to change this and get back on track. |
@JacobJT im not able to understand the problem that you are facing. |
@iThink32 Sorry, the "oh whoops" was meant to be under an edit. I googled the same error message from a different repo and this came up. I was getting the unsupported architectures + invalid segments errors when trying to submit to the app store. It was a different framework (PureLayout), installed via Carthage. I don't know how I was not seeing the issue before, but the fix was making sure my copy-frameworks run script came after linking the binaries. Sorry for irrelevant spam on this thread! Though, since it's the thread that came up when I searched the issues, I hope these comments may at least help someone else who accidentally stumbles across here. |
no problem @JacobJT |
closing this issue due to inactivity reopen if required. |
Do we need to remove both x86_64 and i386 or just need to remove the non applicable ones? When we execute the entire script, then compilation is failing. |
Please reopen issues before commenting , anyway please watch the video named creating an app archive on the following link it will solve your problem. |
closing due to inactivity |
Facing the same problem with Ionic and couldn't fix with steps. :( Is there anyone could help through it? |
Updated to the latest version of lib.
Getting the following error on release build while uploading to the store.
following errors:
ERROR ITMS-90087: "Unsupported Architectures. The executable for KheloMore.app/Frameworks/Razorpay.framework contains unsupported architectures '[x86_64, i386]'."
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'KheloMore.app/Frameworks/Razorpay.framework/Razorpay' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
-- Looking for the solution for specifically second one.
thanks.
RN: 0.51.0
Xcode: 9.2
The text was updated successfully, but these errors were encountered: