I\'m trying to build an extension project and Xcode keeps throwing the error in subject.
The solution is already covered in a lot of answers:
Containing App Bundle Id: com.alphabet.gmail
and
Extension app bundle id: com.alphabet.gmail.notificationServiceExtension
Because Apple wants communication between apps to be by the containing app's bundleId and avoid devs having to go around and send messages to the bundleID of the app Extension.
For example, your server must send a field named apns-topic to send a push notification to APNS so the app can download an image. The value of that topic is the bundleID.
But it's not the bundle ID of the service extension. It's the bundleId of the main app itself.
However on the actual physical phone, both the bundleIDs (com.alphabet.gmail.notificationServiceExtension
and com.alphabet.gmail
exist).
My understanding is that the OS looks for a target that:
com.alphabet.gmail
example: Extension app bundle id: com.alphabet.gmail.notification
NSExtensionPointIdentifier
set to com.apple.usernotifications.service
. You should not touch this value. It's just a pre-defined value by Apple.