Upon running "pod install", I get an error
eemebarbe opened this issue · comments
[!] Unable to satisfy the following requirements:
Yoga (= 0.43.1.React)
required byReact/Core (0.43.1)
None of your spec sources contain a spec satisfying the dependency:
Yoga (= 0.43.1.React)
.You have either:
- out-of-date source repos which you can update with
pod repo update
or withpod install --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 onpod install
by default.
Tried running pod repo update, didn't do anything.
You need to add an entry like this to your Podfile
:
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
@brianjd
thanks. i added pod Yoga and the build succeeded.
however, now a new error surfaced regarding yoga on analyzer:
The following commands produ1ced analyzer issues:
Analyze /Users/roycclu/Workspace/timecapsule/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/roycclu/Workspace/timecapsule/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
Do you know what's the issue here?
Okay solved it. The solution was to delete ios/build and delete ~/.rncache, build again with react-native run-ios, restart the simulator and everything went fine.