react-native-macos/scripts
rayzr522 274c617f5b Fix build of glog & Flipper-Glog on Apple Silicon (Attempt 2) (#32486)
Summary:
NOTE: Second attempt at merging https://github.com/facebook/react-native/pull/32486 (D32080994 (25d4cb98b0)).

This is a fixed version of the https://github.com/facebook/react-native/issues/32380 PR. It solves a typo, prevents variable substitution in the patch file, and moves it to a better place in the script so that CURRENT_ARCH is actually detected before checking whether to patch.

The `config.sub` included in glog is too old and does not recognize `arm64-*` as a valid arch when building. This, combined with an out of date Flipper-Glog version, results in persistent build failures on Apple Silicon machines.

p.s. i assume all the podfile lock changes were caused by me running this on an Apple Silicon Mac, and thus all the pod checksums were run against the arm64 versions of those pods rather than the normal x86_64 versions. if this is an issue I can revert the changes to that file, but it would seem to be an inevitable issue in future PR diffs...

## Changelog

- [iOS] [Fixed] - Apple Silicon builds of glog & Flipper-Glog

Pull Request resolved: https://github.com/facebook/react-native/pull/32486

Test Plan: See `react-native-oss-ios` Sandcastle job succeed.

Reviewed By: fkgozali

Differential Revision: D32256761

Pulled By: yungsters

fbshipit-source-id: c7f32b72287018f070910b26aad02aa0adf4a61f
2021-11-08 21:26:22 -08:00
..
__tests__ Clean up publish-npm.js and use parseVersion 2021-11-05 15:09:11 -07:00
circleci Comment on PR with link to PR artifact 2021-10-08 17:55:00 -07:00
versiontemplates Migrate large amount of modules to flow strict and strict-local 2020-07-22 09:46:16 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env RN: Use `OS=latest` for Xcode in CI 2021-06-09 18:48:28 -07:00
android-e2e-test.js JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
android-setup.sh Docker android: addressing AVD launch issue (#30279) 2020-10-31 12:48:54 -07:00
bump-oss-version.js Fix npm latest tag issue when releasing patches (#32543) 2021-11-05 15:09:11 -07:00
compose-source-maps.js JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
find-node.sh Fixes Global Node Prefix Error (#31740) 2021-09-30 15:02:27 -07:00
generate-api-docs.js Generate doc info for RN components 2019-09-19 18:36:25 -07:00
generate-artifacts.js Codegen: Add opt-in for using generate-artifacts script 2021-11-05 11:30:04 -07:00
generate-specs-cli.js generate-specs-cli: Parse arguments using yargs 2021-10-29 11:07:38 -07:00
ios-configure-glog.sh Fix build of glog & Flipper-Glog on Apple Silicon (Attempt 2) (#32486) 2021-11-08 21:26:22 -08:00
launchPackager.bat Revert removal of CRLF from Windows bat files (#31398) 2021-09-09 22:44:32 -07:00
launchPackager.command Metro Bundler -> Metro 2019-08-16 10:37:10 -07:00
lint-java.js Add Java linting using google-java-format (#30444) 2020-12-07 03:12:35 -08:00
node-binary.sh Fix: use NODE_BINARY when starting packager (#24156) 2019-04-10 07:39:23 -07:00
objc-test.sh Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
packager.sh Use CocoaPods-based RNTesterPods for iOS tests (#25416) 2019-06-28 19:18:10 -07:00
process-podspecs.sh Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
publish-npm.js Fix npm latest tag issue when releasing patches (#32543) 2021-11-05 15:09:11 -07:00
react-native-xcode.sh Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
react_native_pods.rb Fix build of glog & Flipper-Glog on Apple Silicon (Attempt 2) (#32486) 2021-11-08 21:26:22 -08:00
run-android-ci-instrumentation-tests.js Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
run-android-emulator.sh Move non-license comments out of license header 2019-10-15 20:12:12 -07:00
run-android-local-integration-tests.sh Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
run-android-local-unit-tests.sh Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
run-ci-e2e-tests.js Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
run-ci-javascript-tests.js Add react-native-oss-e2e job to Sandcastle, running JavaScript e2e tests from open source 2019-04-15 11:07:54 -07:00
run-instrumentation-tests-via-adb-shell.sh Move non-license comments out of license header 2019-10-15 20:12:12 -07:00
set-rn-template-version.js Adjust test manual e2e script to work with new init (#24583) 2019-04-25 02:03:10 -07:00
sync-css-layout.sh Clean up instances of scripts/signedsource.py 2019-03-14 13:42:27 -07:00
test-manual-e2e.sh Add ios template build test 2021-10-28 15:48:29 -07:00
try-n-times.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
update-ruby.sh iOS Ruby Updates (#32456) 2021-10-21 15:58:18 -07:00
update_podfile_lock.sh Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
validate-android-device-env.sh Update Broken Link #devcjog25 (#27025) 2019-10-28 12:11:45 -07:00
validate-android-sdk.sh Fixing a minor typo in the verify-android-sdk script. 2021-09-15 03:26:06 -07:00
validate-android-test-env.sh Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
validate-ios-test-env.sh Update Node version to >= 12 (#30252) 2020-10-29 07:40:36 -07:00
version-utils.js Clean up publish-npm.js and use parseVersion 2021-11-05 15:09:11 -07:00