【问题标题】:Can't upgrade and build iOS on react native 0.65无法在 react native 0.65 上升级和构建 iOS
【发布时间】:2021-10-20 23:39:49
【问题描述】:

尝试在 react native 升级助手的帮助下升级到 0.65 react 版本。

我尝试了什么:

1) rm -rf nodu_modules && cd/ios && rm -rf Podfile.lock Pods && pod deintegrate && pod update && pod install

这是我的 Podfile 中的内容。

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.2'

target 'Test' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
  end


  pod 'React-Core', :path => '../node_modules/react-native'

end

我遇到了什么样的问题?

在 pod update/pod install/pod install --repo-update 时,我有:

【问题讨论】:

    标签: ios ruby react-native build cocoapods


    【解决方案1】:

    删除 node_modules 时输入错误?你把 nodu_modules.然后用 yarn/npm 重新安装 node_modules?

    【讨论】:

    • 请在您的回答中提供更多详细信息。正如目前所写的那样,很难理解您的解决方案。
    猜你喜欢
    • 2022-10-20
    • 2020-10-03
    • 2023-02-07
    • 1970-01-01
    • 1970-01-01
    • 2017-09-09
    • 2021-08-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多