Tìm kiếm trang web

javascript - Lưu trữ không bao gồm dSYM cho hermes.framework với UUIDs [some uuid] trong react native


Tôi đang gặp vấn đề khi tải lên tệp lưu trữ từ Xcode lên App Store của Apple trong dự án React Native

Kho lưu trữ không bao gồm một tệp dSYM cho hermes.framework với các UUID [B7ABE37E-553E-3465-82BA-50EFAA0CB16C]. Hãy đảm bảo rằng thư mục dSYM của kho lưu trữ bao gồm một tệp DWARF cho hermes.framework với các UUID mong đợi.

Tôi đã kiểm tra trên internet nhưng không tìm thấy giải pháp nào

dưới đây là podfile của tôi

Transform this into a `node_require` generic function:
def node_require(script)
  # Resolve script with node to allow for hoisting
  require Pod::Executable.execute_command('node', ['-p',
    "require.resolve(
      '#{script}',
      {paths: [process.argv[1]]},
    )", __dir__]).strip
end

Use it to require both react-native's and this package's scripts:
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, '13.4'
prepare_react_native_project!

flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

target 'UNFApp' do
  config = use_native_modules!

  flags = get_default_flags()
  flags[:hermes_enabled] = true

  use_react_native!(
    :path => config[:reactNativePath],
    :fabric_enabled => flags[:fabric_enabled],
    :flipper_configuration => flipper_config,
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  # ⬇️ Add the permissions you need
  setup_permissions([
    'LocationWhenInUse', # Location access when the app is in use
    'LocationAlways',
  ])

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'
  pod 'GoogleUtilities', :modular_headers => true
  pod 'react-native-maps', :path => '../node_modules/react-native-maps'
  pod 'react-native-google-maps', :path => '../node_modules/react-native-maps'

  target 'UNFAppTests' do
    inherit! :complete
  end

  bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
  def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    framework_path = File.join(Dir.pwd, framework_relative_path)
    command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
    puts "Stripping bitcode: #{command}"
    system(command)
  end

  hermes_framework_path = "#{Pod::Config.instance.installation_root}/Pods/hermes-engine/destroot/Library/Frameworks"
framework_paths = [
  "#{hermes_framework_path}/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
  "#{hermes_framework_path}/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/hermes"
]

bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
framework_paths.each do |framework_relative_path|
  strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
end
  # framework_paths.each do |framework_relative_path|
  #   strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
  # end

  post_install do |installer|
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )
    installer.pods_project.targets.each do |target|
      if target.name == 'hermes-engine'
        target.build_configurations.each do |config|
          config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
        end
      end
    end
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

dưới đây là phiên bản react native của tôi

"react": "18.2.0",
    "react-native": "0.72.0",

Bài viết liên quan