charlires / react-native-segment-analytics

Segment Analytics library for React Native (Android & IOS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 by React/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 with pod 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 on pod install by default.

Tried running pod repo update, didn't do anything.

commented

You need to add an entry like this to your Podfile:

pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

commented

@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?

commented

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.