2017-05-08 1 views
5

로컬 데이터베이스와 반응하는 네이티브 프로젝트를 진행하고있었습니다. 로컬 데이터베이스 액세스를 위해이 코드를 https://github.com/andpor/react-native-sqlite-storage으로 사용했습니다. 그것은 RN 0.41에서 잘 작동했습니다.포드 설치가 실패했습니다. 네이티브 0.44

하지만 지금은 RN 버전을 0.44로 업그레이드 할 때 포드를 설치하면 오류가 발생합니다. 나는이 오류를 해결할 수 많은 것들을하지만 시도했다

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

:

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입니다. 나는 새로운 프로젝트 반응 만들었지 만 그것은, 너무

+0

. 솔루션과 함께 행운? – MPG

+0

예. 그것은 나를 위해 일하고있다 –

답변

10

포드 '요가'에서 작동하지 않는 : 경로 => 같은 문제에 직면 '../node_modules/react-native/ReactCommon/yoga'

+1

누락 된 부분을 소개하고 OP (및 다른 누구)가 더 쉽게 변경해야 할 부분을 알 수 있도록 전체, 수정 된 pod 파일을 게시하는 등 좀 더 자세한 정보를 제공 할 수 있습니다. 오류 –

+0

감사합니다! 그 이유는 요가가 필요하기 때문입니다 ... 그래서이 라인을 추가하는 것은 필요한 의존성을 충족시킵니다. – xenetics

관련 문제