/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/ios/.xcode.env
34 строки
2 KB
chrisnojima
fix(rpc): harden mobile JSI bridge against reader races and stream desync (#29464)
10 авг 2026, 17:06
Не верифицирован
10 авг 2026, 17:06
cd03baa
Код
Авторство
О чём код?
# This `.xcode.env` file is versioned and is used to source the environment # used when running script phases inside Xcode. # To customize your local environment, you can create an `.xcode.env.local` # file that is not versioned. # NODE_BINARY variable contains the PATH to the node executable. # # Customize the NODE_BINARY variable here. # For example, to use nvm with brew, add the following line # . "$(brew --prefix nvm)/nvm.sh" --no-use export NODE_BINARY=$(command -v node) # GO_BINARY is the same idea for the Go toolchain: gobuild-if-needed.sh rebuilds # keybasego.xcframework from a script phase when it goes stale, and a # GUI-launched Xcode has a stripped PATH that will not find go. # # Set it in .xcode.env.local rather than here -- the path is per-machine (a # homebrew keg like /opt/homebrew/opt/go@1.25/bin/go, /usr/local/go/bin/go, an # asdf/mise shim) and there is no default worth versioning. `command -v go` in a # terminal prints the value to use: # # export GO_BINARY=/opt/homebrew/opt/go@1.25/bin/go # # Without it, an Xcode build that needs a Go rebuild fails with instructions. # Bundle via Expo's CLI, not the React Native community CLI. Expo's metro-config # stores per-module source maps in a packed format and installs a transformFile # patch that unwraps them; the RN community `bundle` command lacks that patch, so # a device Debug build (which bundles with --sourcemap-output) hits metro-source-map's # "Unexpected module with full source map found" on the require.js polyfill. # Use a path (not `node --print require.resolve`) so this works when Xcode's # stripped PATH leaves NODE_BINARY empty at the time this file is sourced. # $PODS_ROOT is .../shared/ios/Pods, so ../../node_modules is .../shared/node_modules. export CLI_PATH="$PODS_ROOT/../../node_modules/@expo/cli/build/bin/cli" export BUNDLE_COMMAND="export:embed"