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

Xcode 11 Compile Issues - Watchkit.h

Open pbr0ck3r opened this issue 5 years ago • 3 comments

In MixpanelWatchProperties.m xCode complains about not being able to find Watchkit.h

pbr0ck3r avatar Sep 22 '19 16:09 pbr0ck3r

I was able to fix the issue by wrapping the #import and MixpanelWatchProperties implementation with a #if !TARGET_OS_IOS.

pbr0ck3r avatar Sep 22 '19 16:09 pbr0ck3r

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?

hecmonn avatar Sep 24 '19 14:09 hecmonn

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

pbr0ck3r avatar Sep 24 '19 14:09 pbr0ck3r