customerio / customerio-reactnative

MIT License
23 stars 11 forks source link

'shared' is unavailable in application extensions for iOS #193

Closed Allanbcruz closed 11 months ago

Allanbcruz commented 12 months ago

SDK version: 3.1.8

Describe the bug When I try to build version 3.1.8 I get the following error: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

To Reproduce Simply try to generate a build

Screenshots Captura de Tela 2023-08-31 às 14 04 22

Additional context I followed all the setup mentioned in the documentation https://customer.io/docs/sdk/react-native/push-notifications/push/

levibostian commented 12 months ago

Sorry to hear that you encountered an issue, @Allanbcruz. Let's see if we can help.

Could you please send me:

If you could rather send these files to us in private, you can send it to win@customer.io and in your message refer to this issue.

Have a great day!

levibostian commented 11 months ago

Closing due to inactivity.

luihugo commented 7 months ago

how did you solve this? @Allanbcruz @levibostian

levibostian commented 7 months ago

Hey there, @luihugo.

The most common reason for this error occurring is including the In-App messaging SDK as a dependency inside of your Podfile incorrectly.

Double check this line of code inside of your target 'NotificationServiceExtension' do block in your Podfile. Notice the important -richpush part in that line of code.

Run pod update --project-directory=ios in your project and try doing what you were doing when you got this error.


If the help above does not solve your problem, please contact our support using these instructions and we will dig into this deeper with you.

Have an awesome day!

luihugo commented 7 months ago

Thanks for the help, this plus a couple of trial and error and the app finally builds, Appreciate it.