iOS中的本机本地0.68升级问题

发布于 2025-02-09 14:01:07 字数 506 浏览 3 评论 0 原文

我最近将我的React Native项目从0.62升级到0.68。新的架构设置已在Android中实现,并且代码正常工作。但是,当我尝试升级iOS的新架构更改时,代码根本不会运行。每次我收到

  Command PhaseScriptExecution failed with a nonzero exit code 
  FBReactNativeSpec.build/Script-46EB2E00014D80.sh

反应文档在构建iOS代码方面根本没有帮助我。

我曾尝试过创建新的React本地示例项目,但即使这些项目也无法与最新的架构更改一起使用。

我尝试了所有解决方案。

任何人都可以在iOS的升级步骤中帮助我。

I have recently upgraded my react native project from 0.62 to 0.68. New Architecture set up has be implemented in android and the code is working fine. But when i try to upgrade the new architectural changes for iOS, but code doesn't run at all. Everytime i get

  Command PhaseScriptExecution failed with a nonzero exit code 
  FBReactNativeSpec.build/Script-46EB2E00014D80.sh

React-Native documentation https://reactnative.dev/docs/next/new-architecture-app-intro isn't helping me at all in building my ios code.

I have tried creating new react native sample projects, but even those projects are also not working with latest architectural changes.

I have tried all the solutions out there.

Can anyone please help me in the upgradation steps for iOS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ㄟ。诗瑗 2025-02-16 14:01:07

如果有人在升级后面对最新的React Native版本0.68,面对FBreActnationsPec发行,请评论Node_modules> gt; gt;反应本地>脚本> find-node.sh

# # Define NVM_DIR and source the nvm.sh setup script
# [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"

# # Source nvm with '--no-use' and then `nvm use` to respect .nvmrc
# # See: https://github.com/nvm-sh/nvm/issues/2053
# if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
#   # shellcheck source=/dev/null
#   . "$HOME/.nvm/nvm.sh" --no-use
#   nvm use 2> /dev/null || nvm use default
# elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
#   # shellcheck source=/dev/null
#   . "$(brew --prefix nvm)/nvm.sh" --no-use
#   nvm use 2> /dev/null || nvm use default
# fi

代码之后开始工作。另外,如果还从这些文件中找到,请检查您的.bashprofile和.zrsh配置文件删除NVM路径。

祝你好运

If anyone facing the FBReactNativeSpec issue with latest react native version 0.68 after upgrade, comment this line from node_modules > react-native > scripts > find-node.sh

# # Define NVM_DIR and source the nvm.sh setup script
# [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"

# # Source nvm with '--no-use' and then `nvm use` to respect .nvmrc
# # See: https://github.com/nvm-sh/nvm/issues/2053
# if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
#   # shellcheck source=/dev/null
#   . "$HOME/.nvm/nvm.sh" --no-use
#   nvm use 2> /dev/null || nvm use default
# elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
#   # shellcheck source=/dev/null
#   . "$(brew --prefix nvm)/nvm.sh" --no-use
#   nvm use 2> /dev/null || nvm use default
# fi

Code started working after it. Also please do check your .bashprofile and .zrsh profile remove nvm path if found from these files also.

Good Luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文