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

fix undefined_arch error in Xcode 10 beta #19841

Closed
wants to merge 2 commits into from
Closed

Conversation

futuun
Copy link
Contributor

@futuun futuun commented Jun 22, 2018

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).

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

@react-native-bot react-native-bot added ✅Test Plan Type: Enhancement A new feature or enhancement of an existing feature. labels Jun 22, 2018
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 22, 2018
everything that runs iOS 8 should be supported so we cannot use arm64.
arm64 is backward compatible with armv7
Copy link
Contributor

@hramos hramos left a 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.

@hramos
Copy link
Contributor

hramos commented Jun 25, 2018

I've applied this patch to a clean checkout of master on my fork, in order to kick off a build with these changes. Follow here for updates: https://circleci.com/workflow-run/7f8bf2d7-6764-4e0b-8dd2-2b93e8e1519c

If test_objc passes on that workflow, I'll land these changes.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jun 25, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@hramos
Copy link
Contributor

hramos commented Jun 25, 2018

All green, landing.

hramos pushed a commit that referenced this pull request Jul 4, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems with glog (config.h missing) and gflags/gflags.h on Xcode 10
4 participants