生成存档时未找到 EXLocation、OpenSSL 框架反应本机 ios xcode

Rus*_*oid 3 frameworks ios react-native

过去两天我一直在尝试生成存档。我已经创建了反应本机项目。已在设备上成功运行。但是当我尝试生成存档以在试飞时上传时。它给了我错误。

在此输入图像描述

我的RN版本是0.64,Xcode 12.5。

这是我的 pod 文件:

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

platform :ios, '11.0'

target 'XXXX' do
   use_unimodules!
  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
                    )
                    


                    target 'XXXXXTests' do
                      inherit! :complete
                      # Pods for testing
                    end
                    
                    # Enables Flipper.
                    #
                    # Note that if you have use_frameworks! enabled, Flipper will not work and
                    # you should disable the next line.
                    use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
                    
                    post_install do |installer|
                      react_native_post_install(installer)
                    end
end
Run Code Online (Sandbox Code Playgroud)

我已经多次尝试了pod deintegrated并重新安装pod。但它不起作用

osa*_*omy 10

对我来说,Podfile(platform:ios, '11.0') 和 Xcode 项目文件中的应用程序目标版本不同

在此输入图像描述

它导致 CI​​ 管道中的归档作业失败。匹配两个值解决了问题!希望这对任何人都有帮助。