Ios 获取错误:";未找到-lDoubleConversion“的库;尝试生产时使用React native 0.61.4和xcode 12.1->;档案文件

Ios 获取错误:";未找到-lDoubleConversion“的库;尝试生产时使用React native 0.61.4和xcode 12.1->;档案文件,ios,xcode,react-native,Ios,Xcode,React Native,我遇到错误:“库未找到用于-lDoubleConversion”,带有React native 0.61.4和Xcode 12.1该应用程序在任何其他模拟器设备上运行良好。但当我选择GenericDevice并执行product->Archive时,我得到了这个错误。我已确保在构建之前通过xcworkspace打开xcode。我已经尝试过StackOverflow上类似帖子的建议,比如删除podlock,对pod文件进行去集成,然后重新生成它们。我还重新安装了节点模块。我还在xcode中链接了l

我遇到错误:“库未找到用于-lDoubleConversion”,带有React native 0.61.4和Xcode 12.1该应用程序在任何其他模拟器设备上运行良好。但当我选择GenericDevice并执行product->Archive时,我得到了这个错误。我已确保在构建之前通过xcworkspace打开xcode。我已经尝试过StackOverflow上类似帖子的建议,比如删除podlock,对pod文件进行去集成,然后重新生成它们。我还重新安装了节点模块。我还在xcode中链接了libDoubleConversion.a的内部构建阶段。我现在真的在挣扎,因为我已经尝试了所有的解决方案。请帮忙。非常感谢。 这是我的播客文件:

# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'

$FirebaseSDKVersion = '6.13.0'

pod 'FBSDKCoreKit', '5.8.0'
pod 'FBSDKLoginKit', '5.8.0'
pod 'FBSDKShareKit', '5.8.0'

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

target 'Messenger' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for Messenger
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

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

  use_native_modules!
  use_unimodules!
end
pre_install do |installer|
  puts("Image fix for ios14: remove this when upgradeing to >= 0.63.3")
  find = "_currentFrame.CGImage;"
  replace = "_currentFrame.CGImage ;} else { [super displayLayer:layer];"
  op = `sed -ie "s/#{find}/#{replace}/" ../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m`
  puts("Image fix for ios14 done")
end
在Xcode中打开项目。 只需在项目的“库搜索路径”中添加下面的一行

"${PODS_CONFIGURATION_BUILD_DIR}/DoubleConversion" 
然后清理生成文件夹,并尝试重新生成。
然后您就解决了这个问题。

您是否在ios文件夹上执行了pod安装@悉达多·索加尼耶,我安装了吊舱。如果你读了我的文章,你甚至可以将pod和podlock分离并重新安装。这个库搜索路径的更新对我也很有用,至少对DoubleConversion库是如此。你知道为什么设置为recursive的${PODS\u CONFIGURATION\u BUILD\u DIR}搜索路径在查找这些库时不起作用吗?