Hello,
I am getting some weird errors from my AppDelegate.mm after upgrading to SDK45 on a managed expo project, I have tried to delete the /ios
directory and go at it fresh. Also upgraded Xcode to the latest version 13.4.1 but nothing seems to be working. Any advice would be really appreciated!
Compiling Yumee » AppDelegate.mm
❌ (ios/Yumee/AppDelegate.mm:87:1)
85 |
86 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
> 87 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
| ^ invalid argument type 'void' to unary expression
88 | {
89 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
90 | }
❌ (ios/Yumee/AppDelegate.mm:87:20)
85 |
86 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
> 87 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
| ^ expected ';' after expression
88 | {
89 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
90 | }
❌ (ios/Yumee/AppDelegate.mm:88:1)
86 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
87 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
> 88 | {
| ^ expected ']'
89 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
90 | }
91 |
❌ (ios/Yumee/AppDelegate.mm:143:5)
141 | #endif
142 |
> 143 | @end
| ^ expected '}'
144 |
❌ (ios/Yumee/AppDelegate.mm:143:5)
141 | #endif
142 |
> 143 | @end
| ^ missing '@end'
144 |
❌ (ios/Yumee/AppDelegate.mm:87:109)
85 |
86 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
> 87 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
| ^ use of undeclared identifier 'deviceToken'
88 | {
89 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
90 | }
› Compiling Yumee » Yumee_vers.c
› 6 error(s), and 2 warning(s)
Failed to build iOS project. "xcodebuild" exited with error code 65.