Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS: Library "WonderPushExtension" not found #29

Open
Solly74 opened this issue May 17, 2024 · 1 comment
Open

IOS: Library "WonderPushExtension" not found #29

Solly74 opened this issue May 17, 2024 · 1 comment

Comments

@Solly74
Copy link

Solly74 commented May 17, 2024

I've created a new React Native project targeting RN version 0.72.14.
The app runs as expected, after installing the wonderpush library and creating a notification extension the app fails to build. The error is

Screenshot 2024-05-17 at 09 08 05

I've followed the set up here https://docs.wonderpush.com/docs/mobile-push-notifications-react-native

versions are
"dependencies": {
"react": "18.2.0",
"react-native": "0.72.14",
"react-native-wonderpush": "^2.3.0",
"react-native-wonderpush-fcm": "^1.0.9"
},

I am using an M1 macbook, this issue does not occur on the intel macbook.
Is there an extra step I should take or something I am missing?

@MegaMaddin
Copy link

Hey @Solly74, not affiliated with WonderPush.

Two questions:

  • did you setup the pod in your Podfile for the extension target as well? E.g.:
# image-notifications service extension
target 'image-notifications' do
  # Pods for WonderPushNotificationServiceExtension
  pod 'WonderPushExtension', '~> 4.0'
end
  • From the screenshot it looks like you're cross compiling your app (via Rosetta) for x86_64 - any specific reason for that? Can you try and select an ARM target for building and see if that works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants