react-native-appmetrica icon indicating copy to clipboard operation
react-native-appmetrica copied to clipboard

[iOS] 'YandexMobileMetrica/YandexMobileMetrica.h' file not found

Open Vadim7394 opened this issue 7 years ago • 4 comments

Compile error after install, I'm add in Link Binary With Libraries YandexMobileMetrica.framework and libRCTAppMetrica.a, add all dependencies YandexMobileMetrica.framework, but I still get an error in file RCTAppMetrica.m: 'YandexMobileMetrica/YandexMobileMetrica.h' file not found. What the problem may be?

Xcode v10.0 React-native v0.57.3

Vadim7394 avatar Oct 26 '18 08:10 Vadim7394

did you find the solution?

srhtylmz19 avatar Mar 01 '19 10:03 srhtylmz19

Check Search paths in your build settings (frameworks search paths and headers search path).

bamx23 avatar Apr 11 '19 09:04 bamx23

fixed it with replacing import path <YandexMobileMetrica/YandexMobileMetrica.h> with <YandexMobileMetrica.framework/Headers/YandexMobileMetrica.h>. Path 'Pods/YandexMobileMetrica/static' added to search path

konclave avatar Jul 25 '19 15:07 konclave

if you fixed this with https://github.com/yandexmobile/react-native-appmetrica/issues/25 and still an issue then make sure you have Pods/YandexMobileMetrica/Static/... pod install sometimes does not help so you need to remove ios/Pods folder and reinstall all pods

RageOfJustice avatar Feb 12 '20 09:02 RageOfJustice