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

Add ability to remove architectures from built binary prior to app-store upload #31

Closed
vetikent opened this issue Nov 12, 2017 · 2 comments

Comments

@vetikent
Copy link

Since the Apple app store does not allow uploading of binaries for unsupported architectures will you add a capability or instructions on how to remove those binaries to this repo?

Here is a discussion of a similar issue for the Shopify API: https://stackoverflow.com/questions/30547283/submit-to-app-store-issues-unsupported-architecture-x86

@vetikent
Copy link
Author

@vetikent
Copy link
Author

Also, the documentation could be more explicit on the specific lipo command to be used.

it should be lipo -remove instead of lipo -extract

Also note that lipo -remove has to be done once for each architecture to remove. lipo does not modify the input file, it only produces a file so you have to run lipo -remove once for x86_64 and i386.

example:

 cd plugins/com.microblink.BlinkIdScanner/src/ios/blinkid-ios/Microblink.framework
 mv MicroBlink MicroBlink_all_archs
 lipo -remove x86_64 MicroBlink_all_archs -o MicroBlink_some_archs
 lipo -remove i386 MicroBlink_some_archs -o MicroBlink
 rm MicroBlink_all_archs MicroBlink_some_archs 

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

1 participant