react-native-appmetrica
react-native-appmetrica copied to clipboard
[iOS] 'YandexMobileMetrica/YandexMobileMetrica.h' file not found
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
did you find the solution?
Check Search paths in your build settings (frameworks search paths and headers search path).
fixed it with replacing import path <YandexMobileMetrica/YandexMobileMetrica.h> with <YandexMobileMetrica.framework/Headers/YandexMobileMetrica.h>. Path 'Pods/YandexMobileMetrica/static' added to search path
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