2017-05-08 63 views
5

我正在與本地數據庫中的反應本地項目。我用這個https://github.com/andpor/react-native-sqlite-storage進行本地數據庫訪問。它與RN 0.41正常工作。吊艙安裝失敗,反應本地0.44

但現在當我在我的RN版本升級到0.44我收到以下錯誤與吊艙安裝。

Unable to satisfy the following requirements: 
- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)` 

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.44.0.React)`. 

You have either: 
* out-of-date source repos which you can update with `pod repo update`. 
* mistyped the name or version. 
* not added the source repo that hosts the Podspec to your Podfile. 

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default. 

這是我podfile:

target 'ProjectName' do 
    pod 'React', :path => '../node_modules/react-native' <br> 
    pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage' 
end 

我已經試過很多東西,但沒有能夠解決這個錯誤。我創建了一個新的反應項目,但它並沒有在太

+0

面臨同樣的問題。解決方案的運氣好嗎? – MPG

+0

是的。它是爲我工作 –

回答

10

莢「瑜伽」的工作,:PATH =>「../node_modules/react-native/ReactCommon/yoga」

+1

你可能想提供一些更多的細節,你的答案,就像引進什麼遺漏,並張貼充分,更正podfile所以OP(和其他人)可以知道,如果他們遇到什麼能夠更容易地改變錯誤 –

+0

感謝您的支持!原因是工程是因爲需要瑜伽......所以添加這條線符合所需的依賴性。 – xenetics