react-native-mixpanel
react-native-mixpanel copied to clipboard
Xcode 11 Compile Issues - Watchkit.h
In MixpanelWatchProperties.m
xCode complains about not being able to find Watchkit.h
I was able to fix the issue by wrapping the #import
and MixpanelWatchProperties
implementation with a #if !TARGET_OS_IOS
.
By wrapping the file in an #if the ap is able to build, however it freezes as soon as it boots.
Any other solution on this?
I am able to get the app to build/run just fine. The MixpanelWatchProperties.m
file looks like this...
#import "MixpanelWatchProperties.h"
#if !TARGET_OS_IOS
#import <WatchKit/WatchKit.h>
@implementation MixpanelWatchProperties
...
@end
#endif