无法在椰子足类中将双转换更新到其最新更新 (1.1.6)



我正在构建一个react-native应用程序,我想集成react-native-fbsdk,在Xcode中构建它后,我得到了错误library not found for -lDoubleConversion。所以经过研究和尝试,我认为这是一个版本问题。如何更新DoubleConversion。

尝试至今:

  • 删除了node_modules
  • 删除了包锁.json
  • npm安装
  • cd ios
  • 删除了Podfile.lock(甚至取消了pod的集成(
  • pod安装
  • pod更新
    • pod安装/pod更新/pod更新后的消息DoubleConversion/pod更新DoubleConversion-repo更新
      **'Pod installation complete! There are 29 dependencies from the Podfile and 30 total pods installed.**'
  • pod尝试双重转换/pod过时

    • 给我错误-[!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/1/5/8/DoubleConversion/1.1.5/DoubleConversion.podspec.json Response: Timeout was reached
  • sudogem卸载cocoapods并重新安装
  • 此外,一开始我认为我可能做错了什么,所以我从一开始就在全球安装react-native-cli,但后来又遇到了同样的问题

播客

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'xyz' do
# Pods for xyz
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-native-fbsdk', :path => '../node_modules/react-native-fbsdk'
target 'xyzTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'xyz-tvOS' do
# Pods for xyz-tvOS
target 'xyz-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end

DoubleConversion- DoubleConversion (1.1.6)Podfile.lock中的版本

因此,经过所有的研究和错误,我认为这是一个与DoubleConversion版本有关的问题,因为在pod update之后,错误表明它试图达到1.1.5版本,但根据Podfile.lock,它想要1.1.6版本。

最后我解决了这个问题,而不是打开xcodeproj,用xworkspace打开它。

最新更新