簡體   English   中英

錯誤 build react native ios use yarn ios new project

[英]Error build react native ios use yarn ios new project

我想用 xcode 12.4 構建 ios,用 react native 構建 ios14.4。 像這樣的錯誤

** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/user/Library/Developer/Xcode/DerivedData/testIos2-gadmwivyqenuohhdfabybpprezqk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00015310.sh
(1 failure)

請有人幫助我,我正在使用英特爾 mac os catalina,這是我的 pod 文件

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

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

production = ENV["PRODUCTION"] == "1"

target 'cobaIos' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :production => production,
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'cobaIosTests' do
    inherit! :complete
    # Pods for testing
  end


  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

謝謝,我希望它可以解決,因為它需要 2 天並且不再解決

該錯誤是由於混合匹配版本的反應本機和鰭狀肢。

對於 react-native 63+ 它應該遵循

use_flipper!({ 'Flipper' => '0.58.0' })然后run pod install

更清楚地閱讀此文檔以進行手動設置: https ://fbflipper.com/docs/getting-started/react-native-ios/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM