框架未找到EXLocation,OpenSSL在生成React Native iOS Xcode存档时。

3

我已经尝试了2天来生成归档文件。我创建了React Native项目,它在设备上成功运行。但是当我尝试生成归档文件以便上传到TestFlight时,它会出现错误。

enter image description here

我的RN版本是0.64,Xcode 12.5。

这是我的Podfile:

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

我已经尝试过多次卸载pod并重新安装,但仍然无法解决问题。


嗨,我遇到了同样的问题。你有找到解决方法吗? - Ravi Saxena
1个回答

10

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

enter image description here

这导致CI流水线中的归档作业失败。匹配两个值可以解决问题!希望这能帮助任何需要的人。


1
你救了我!谢谢 :) - Queen
1
这对我也起作用了。升级到RN 0.65后,pod平台设置为11,但我的Xcode目标是10。 - Henrik Hansen

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接