wonderpush / wonderpush-ios-sdk

iOS SDK for WonderPush − This plugin makes it easy to set up WonderPush push notifications on your iOS apps for iPhone, iPad and Apple devices. High volume, fast delivery and full-featured starting €1/month.
https://docs.wonderpush.com/docs/ios-push-notifications-quickstart
Apache License 2.0
5 stars 8 forks source link

"Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's." #15

Closed krabouilleur closed 1 year ago

krabouilleur commented 2 years ago

Hi,

on Xcode if i test on real device, push notifications are working. The provisioning profile use a certificate of type "Apple Development" (so in Debug, for testing on real device)

But if I want to publish to the Appstore (in release) :

  1. I change the provisioning profile which contains an "Apple Distribution" certificate
  2. I create an Archive (Product -> Archive)
  3. The build fails at the end with this message : "Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's."

The WonderPushNotificationServiceExtension is configured to : "Automatically manage signing" But this service is configured to have an "Apple Development" certificate

How to publish an app with the wonder push extension to the App Store ?

ofavre commented 2 years ago

Hi,

Do you use a framework like Cordova, Flutter or React Native or do you use a native Xcode project directly?

Can you send a screencapture of the "Signing & Capabilities" tab of both you app target and the Notification Service Extension target? If necessary for privacy, use the chat on your WonderPush dashboard.

It should be configured this way:

krabouilleur commented 2 years ago
  1. native Xcode project directly
  2. App signing & capabilities App: Capture d’écran 2022-09-28 à 13 09 03

Service :

Capture d’écran 2022-09-28 à 13 10 52

Error message now: Archive -> Distribute App -> App Store Connect -> Upload -> Automatically manage signing :

Capture d’écran 2022-09-28 à 13 17 16

And I can't create an identifier (bundle ID) com.example.WonderPushNotificationServiceExtension

So I create a wildcard com.example.* Capture d’écran 2022-09-28 à 13 24 39

ofavre commented 2 years ago

The app identifier "com.[…].WonderPushNotificationServiceExtension" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.

I believe this may be because that AppID was already used with another TeamID. Maybe you still have access to that other TeamID and can either use that one, or go to it's associated App Store Connect page and remove the association with the AppID, to free it for your new TeamID.

Or as the message says, simply use another AppID for this extension. Make sure to change the target id in your Podfile accordingly if you use Cocoapods.

Once fixed the second error message will probably disappear too.