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

Submit to App Store issues: Unsupported Architecture x86 #60

Closed
malangaveuday opened this issue Feb 24, 2018 · 35 comments
Closed

Submit to App Store issues: Unsupported Architecture x86 #60

malangaveuday opened this issue Feb 24, 2018 · 35 comments

Comments

@malangaveuday
Copy link

screen shot 2018-02-24 at 1 05 55 am

iTunes store throws the error when tried to upload archive build from Xcode.

@AbhinavArora95
Copy link
Contributor

AbhinavArora95 commented Feb 26, 2018

@malangaveuday - When a framework is distributed, it contains architectures of the simulators so that the consumer of the framework can build it on a simulator. However, when you are uploading the archive on itunes, you have to strip these architectures. If you would have been using cocoapods, it would have been done by it. Since, probably you are not using it, please run the attached script on the Razorpay.framework within your archive or before create the archive.
StripInvalidArchitectures.txt

@rishiankush
Copy link

@AbhinavArora95 Thanks for the solution. you saved my day!

@mukulkumar1703
Copy link

@AbhinavArora95
I am also getting the same error while uploading the build in app store. I copied the script from "StripInvalidArchitectures.txt" file that you have shared above and put it on the Build Phases/ Run Script and archive the build, but now I am getting following error

fatal error: lipo: can't open input file: Razorpay.framework/Razorpay (No such file or directory)
fatal error: lipo: can't open input file: Razorpay.framework/Razorpay (No such file or directory)
rm: Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftdoc: No such file or directory
rm: Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftmodule: No such file or directory
rm: Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftdoc: No such file or directory
rm: Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule: No such file or directory

Please let me know what I am doing wrong here

Thanks

@pronav
Copy link
Contributor

pronav commented May 31, 2019

Have you included Razorpay.framework in embed binaries step?

@mukulkumar1703
Copy link

@pronav yes I have in included, but now I am able to upload the build in apple store.

@mathewk2017
Copy link

@mukulkumar1703 how did you solved the problem? I am getting the same error.

@Biplovkumar
Copy link

Biplovkumar commented Aug 28, 2019

framework

in which folder, we need to run command. Plz share !
Screenshot 2019-08-28 at 12 57 39 PM

I have these valid architecture , Do need to run that command ?
Plz reply @AbhinavArora95 sir.

@Anujmoglix
Copy link

I am also facing this issue . Any solution for this ?

@iamromec
Copy link

@AbhinavArora95 I am not a Swift developer and I don't understand, "Locate the directory in which Razorpay.framework is present in the archive that you are trying to upload."

Could you please share specific steps? Also this FAQ step couldn't help: https://razorpay.com/docs/payment-gateway/ios-integration/faq/

I couldn't find the directory where Razorpay.framework is localited.

@Nautiyalsachin
Copy link
Contributor

Hi @iamromec : Can you give me more details about this, Also it will help if you can add some logs or screenshots.

@iamromec
Copy link

Sure. I've followed the FAQ and some other unlisted video to fix this but yet couldn't.

I have attached a couple of screenshots.
Screenshot 2020-03-19 at 10 58 58 AM
Uploading Screenshot 2020-03-19 at 10.51.09 AM.png…

Screenshot 2020-03-19 at 11 14 57 AM

@iamromec
Copy link

@Nautiyalsachin here's the video link I was asked to follow: https://www.youtube.com/watch?v=HVGUBRot7VA&feature=youtu.be but didn't work.

@iamromec
Copy link

iamromec commented Mar 19, 2020

@Nautiyalsachin

I'm using

IONIC Version: 5.0.0
XCode Version: 11.3
Razorpay Cordova Plugin Version: 1.4.8

@Nautiyalsachin
Copy link
Contributor

Can you tell me the steps, how you try to install the Razorpay plugin?

@iamromec
Copy link

iamromec commented Mar 19, 2020

@Nautiyalsachin

To install the plugin, I used:

ionic cordova plugin add com.razorpay.cordova

And then

ionic cordova build ios --prod

Then went to platforms/ios and clicked on .xcworkspace.

@Nautiyalsachin
Copy link
Contributor

Nautiyalsachin commented Mar 19, 2020

@iamromec: I guess you are using Angular, as you have mentioned Cordova in the question, and for future references please raise the issue in Razorpay Cordova repository.

  1. Try removing the current package and

  2. Use cordova plugin add https://github.com/razorpay/razorpay-cordova.git

We are updating our Cordova package soon. For now, you can install it directly from Github.

Let me know if it works for you.

@iamromec
Copy link

Do I still need to add that script?

@Nautiyalsachin
Copy link
Contributor

Nautiyalsachin commented Mar 19, 2020

Can you create a new project and try again. It's working for me here,

Screenshot 2020-03-19 at 2 24 58 PM

Also no need for the script or any extra step.

@iamromec
Copy link

iamromec commented Mar 19, 2020

@Nautiyalsachin

Ah! Man. With this, it conflicts with other plugins within the project. Like GooglePlus.

When I removed it and re-added the platform, it works fine. But not with the cordova plugin add https://github.com/razorpay/razorpay-cordova.git

Screenshot 2020-03-19 at 2 33 09 PM

@iamromec
Copy link

@Nautiyalsachin are you looking into?

@Nautiyalsachin
Copy link
Contributor

This is an iOS related issue. Follow the steps mentioned in this link, also please try to google the issues you face. Sometime you might get lucky there.

@iamromec
Copy link

It isn't. It's occurring when I install the plugin with the URL you've mentioned. If I remove it, it works fine so it should be something with it I guess.

You are testing with sample project but in reality, there won't be a project just with only Razorpay plugin.

@iamromec
Copy link

iamromec commented Mar 19, 2020

Why would I post here if I could just find it on Google? I did and sent you all the resources I found related to this. Even I've followed what your official docs say.

@Nautiyalsachin
Copy link
Contributor

@iamromec : As I can't see anything related to Razorpay, I won't be able to resolve this issue here, you can try it by searching in Google plus repositories for more details.

@iamromec
Copy link

@Nautiyalsachin

What? Everything is working smoothly without the plugin with URL you've specified and when I do this, it creates conflicts and you're talking that it's not related to Razorpay? How so?

It works fine even with the existing plugin command cordova plugin add com.razorpay.cordova and just the problem is with the archive file.

Why are you not getting the point that it's obviously related to Razorpay?

@Nautiyalsachin
Copy link
Contributor

Okay, try adding the script again as I can see the simulator architecture in that. It will help you to archive the Google Plus framework.

@iamromec
Copy link

Yeah but I'm unable to succeed with ionic cordova build ios command. Once it's done, then I could proceed with opening the .xsworkspace file and add the script.

@Nautiyalsachin
Copy link
Contributor

Have you already added the script?

@iamromec
Copy link

No.

@iamromec
Copy link

Is it possible for you to take this on TeamViewer?

@iamromec
Copy link

@Nautiyalsachin

If this helps you....
Screenshot 2020-03-19 at 4 16 13 PM

@Nautiyalsachin
Copy link
Contributor

So, you are able to archive ?

@iamromec
Copy link

Noooo, that's the problem. I'm seeing this error I've sent you via screenshots in the email when the validation part completes or distributing to the appstore.

Screenshot 2020-03-19 at 11 14 57 AM

@iamromec
Copy link

The build is working on the simulator...it's just when distributing to the app store, it gives this error. I think you missed some parts of the problem which I've sent in the starting.

@Nautiyalsachin
Copy link
Contributor

Closing this issue as this is resolved.

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

No branches or pull requests

10 participants