-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
fix undefined_arch error in Xcode 10 beta #19841
Conversation
everything that runs iOS 8 should be supported so we cannot use arm64. arm64 is backward compatible with armv7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Objective-C test suite is failing on this PR. If you believe the failure is unrelated to your change, please rebase on top of master.
I've applied this patch to a clean checkout of If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
All green, landing. |
Summary: Fixes #19774 I spotted that in Xcode 10 beta `CURRENT_ARCH` is set to string `undefined_arch`. This PR will add fallback based on platform name (simulators are `x86_64` and everything since iPhone 5s is `arm64`). Closes #19841 Differential Revision: D8619897 Pulled By: hramos fbshipit-source-id: ed2ebaca105c6dcb40099f1a4aebe34d0660130c
Fixes #19774
I spotted that in Xcode 10 beta
CURRENT_ARCH
is set to stringundefined_arch
. This PR will add fallback based on platform name (simulators arex86_64
and everything since iPhone 5s isarm64
).Test Plan:
Try to build on Xcode 10 beta - build will pass without issues.
Check if it works on Xcode 9 - build will pass as well.
Release Notes:
[IOS][INTERNAL] [ENHANCEMENT] [./scripts/ios-configure-glog.sh] - fix undefined_arch error in Xcode 10 beta