Skip to content

RN 0.66.5 + RN CLI: PhaseScriptExecution error (not with Xcode) #15

@leotm

Description

@leotm

Follow-up to


From npx react-native@0.66.5 init RN0665 --version 0.66.5

yarn start --reset-cache

yarn ios

nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
Command PhaseScriptExecution failed with a nonzero exit code

The build error is now happening consistently for fresh RN projects, with unset PREFIX to no avail

Likely related to nvm from metamask-mobile setup (no other node manager in use)
nb: also running react-native+0.66.5.patch

If unable to figure soon, stick to Xcode (14.2 stable) for now i.e. not a blocker

nvm --version # 0.39.3
which nvm # nvm function definition: https://pastebin.com/CwvhKUN0
node --version # v14.21.3
which node # /opt/homebrew/opt/node@14/bin/node

echo $PATH

/opt/homebrew/opt/node@14/bin:/Users/leo/.rbenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/leo/Library/Android/sdk/emulator:/Users/leo/Library/Android/sdk/tools:/Users/leo/Library/Android/sdk/tools/bin:/Users/leo/Library/Android/sdk/platform-tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorbuild/run time blockeriOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions