Page MenuHomePhabricator

[iOS] Fix pod install and react-native with nix env
ClosedPublic

Authored by jon on Oct 31 2022, 7:17 AM.
Tags
None
Referenced Files
F3504940: D5508.diff
Fri, Dec 20, 11:24 AM
Unknown Object (File)
Mon, Nov 25, 3:49 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Nov 8 2024, 10:32 PM
Unknown Object (File)
Nov 7 2024, 3:40 PM
Unknown Object (File)
Nov 7 2024, 1:35 PM
Unknown Object (File)
Nov 7 2024, 11:43 AM

Details

Summary

Force /usr/bin to be prefixed on PATH to ensure
that macOS tooling is found first for iOS builds. Otherwise build will
fail with GNU coreutils and Nix provided clang.

Test Plan
nix develop

# if you want to thoroughly clean everything
git clean -xfd

cd native/ios

# Remove and prune pod artifacts
pod deintegrate Comm.xcodeproj/
git checkout . # restore project

cd ../..

yarn cleaninstall # should also run pod install

# Assert that pod install succeeded
# gRPC-C++ is the pod likely to fail and gRPC-Core is a downstream dependency
ls native/ios/Pods/gRPC-Core

Depends on D5488

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 31 2022, 7:26 AM
Harbormaster failed remote builds in B13100: Diff 17986!

Did you test that things still work for the non-nix workflow?

This revision is now accepted and ready to land.Nov 2 2022, 12:35 PM

Did you test that things still work for the non-nix workflow?

No, but only /usr/local/bin is ordered in front of /usr/bin on my mac (by default), and it only contains items installed with homebrew. So it may have an effect, but the desire here is to get BSD versions of commands (e.g. sed), and the macOS native clang compiler.