react-native-macos/packages
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
..
assets Support nonstandard pixel densities for Android drawables 2021-09-09 08:19:42 -07:00
babel-plugin-codegen JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
eslint-config-react-native-community JS: Upgrade to Prettier v2.4.1 [1/n] 2021-11-02 22:14:16 -07:00
eslint-plugin-codegen JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
eslint-plugin-react-native-community JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
normalize-color JS: Format with Prettier v2.4.1 [3/n] 2021-11-02 22:14:16 -07:00
polyfills RN: Temporarily Disable Prettier for Some Files 2021-11-02 23:09:38 -07:00
react-native-codegen Bump codegen to 0.0.11 (#32534) 2021-11-04 10:33:39 -07:00
react-native-gradle-plugin Bump gradle-plugin to 0.0.3 2021-11-02 10:39:25 -07:00
rn-tester Fix build of glog & Flipper-Glog on Apple Silicon (Attempt 2) (#32486) 2021-11-08 21:26:22 -08:00