customerio / customerio-expo-plugin

MIT License
11 stars 9 forks source link

EXPO IOS build fails with customerio-react 2.2.0 #54

Closed claudesortwell closed 1 year ago

claudesortwell commented 1 year ago

Error i get during build.

❌  (ios/XXX/AppDelegate.mm:41:1)

  39 | 
  40 | 
> 41 | CIOAppPushNotificationsHandler* pnHandlerObj = [[CIOAppPushNotificationsHandler alloc] init];
     | ^ unknown type name 'CIOAppPushNotificationsHandler'
  42 | 
  43 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  44 | {

❌  (ios/XXX/AppDelegate.mm:41:50)

  39 | 
  40 | 
> 41 | CIOAppPushNotificationsHandler* pnHandlerObj = [[CIOAppPushNotificationsHandler alloc] init];
     |                                                  ^ use of undeclared identifier 'CIOAppPushNotificationsHandler'
  42 | 
  43 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  44 | {
claudesortwell commented 1 year ago

Just tried with customerio-react 2.0.0 and same error. Going to try going through the setup guide again to see if i missed anything

claudesortwell commented 1 year ago

Closing this as I solved this issue by nohoisting this package and customerio react native. So issue was my monorepo setup