wonderpush / wonderpush-cordova-sdk

Cordova SDK for WonderPush − Advanced push notification service for mobile applications and Websites. High volume, fast delivery and full-featured starting €1/month.
https://www.wonderpush.com
7 stars 6 forks source link

Missing arm64 pod source #24

Open timmkuehle opened 4 months ago

timmkuehle commented 4 months ago

Hey there

I've been trying to get your SDK running in an Ionic/Capacitor app and used this this setup guide (seems a little dated, btw) to configure everything.

For Android, everything works fine, but the iOS pods seem to have some problems. After ionic capacitor sync iOS, I am consistently prompted this error message in Xcode, while trying to start the project:

Framework 'WonderPushExtension' not found

When manually installing the pods via pod install --repo-update, the output suggests, that the WonderPush pods are successfully added:

Installing WonderPush (4.3.1)
Installing WonderPushExtension (4.3.1)

ionic capacitor sync ios gives an info about wonderpush-cordova-sdk-fcm being incompatible with ios, but i guess this is fine, because "fcm" might stand for "Firebase Cloud Messaging". I couldn't find any piece of documentation to corroborate that idea, but if it holds true, iOS shouldn't rely on that package

[info] Found 1 incompatible Cordova plugin for ios, skipped install:
       wonderpush-cordova-sdk-fcm@1.0.8

Manually adding the framework binaries to the Xcode project, following this tutorial works, but is no real solution to this problem imho.

Project and system specs:

Thanks in advance for any help or insights!

timmkuehle commented 4 months ago

Okay, i found that Apples arm architecture was to blame again. the Cordova packages do not seem to contain any pod sources for arm64 architectures. That explains, why manually downloading the iOS framework binaries and pasting them into the project solves the issue. These binaries do include versions for arm64.

The current workaround is to set Xcode's Excluded Architectures setting to arm64 for the NotificationServiceExtension target, but the inclusion of the arm64 pod sources in the Cordova SDK would still be much appreciated!