Swift 没有一个规范源包含满足依赖关系的规范:`Yoga(=0.45.0.React)`

Swift 没有一个规范源包含满足依赖关系的规范:`Yoga(=0.45.0.React)`,swift,react-native,cocoapods,Swift,React Native,Cocoapods,我正在将react native添加到现有的swift应用程序中。为此,我将以下代码片段添加到pod文件中 pod 'React', :path => './node_modules/react-native', :subspecs => [ 'Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket', # Add any other

我正在将react native添加到现有的swift应用程序中。为此,我将以下代码片段添加到pod文件中

 pod 'React', :path => './node_modules/react-native', :subspecs => [
        'Core',
        'RCTImage',
        'RCTNetwork',
        'RCTText',
        'RCTWebSocket',
    # Add any other subspecs you want to use in your project
  ]
在此服务器上运行
pod install
不起作用。给出以下错误

没有一个等级库源包含满足依赖关系的等级库: 瑜伽(=0.45.0.反应)

有人能帮忙解决这个问题吗


谢谢你回答我自己的问题:

下面是可可豆的片段

pod 'React', :path => './node_modules/react-native', :subspecs => [
        'Core',
        'RCTImage',
        'RCTNetwork',
        'RCTText',
        'RCTWebSocket',
    # Add any other subspecs you want to use in your project
  ]

 pod 'Yoga', :path => ‘./node_modules/react-native/ReactCommon/yoga/Yoga.podspec'

回答我自己的问题:

下面是可可豆的片段

pod 'React', :path => './node_modules/react-native', :subspecs => [
        'Core',
        'RCTImage',
        'RCTNetwork',
        'RCTText',
        'RCTWebSocket',
    # Add any other subspecs you want to use in your project
  ]

 pod 'Yoga', :path => ‘./node_modules/react-native/ReactCommon/yoga/Yoga.podspec'