OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[question]: [!] Unable to find a target named `OneSignalNotificationServiceExtension` in project `Runner.xcodeproj`, did find `Runner` and `OneSignalServiceNotificationExtension`.

Open Arpithaarha opened this issue 2 years ago • 7 comments
trafficstars

How can we help?

[!] Unable to find a target named OneSignalNotificationServiceExtension in project Runner.xcodeproj, did find Runner and OneSignalServiceNotificationExtension. after adding onesignalnotification extension in podfile and running pod install getting this error

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Arpithaarha avatar Jun 22 '23 07:06 Arpithaarha

Same issue here.

elhe26 avatar Sep 12 '23 13:09 elhe26

Same here. Any solution?

benjaminhorner avatar Sep 26 '23 16:09 benjaminhorner

Can you see if you are experiencing the same issue as issue 750? If it's the same problem, we can work together on it and when there is a solution, we use it.

https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/750

Anderson-Andre-P avatar Sep 26 '23 16:09 Anderson-Andre-P

@Anderson-Andre-P I am building on a Mac and I get the error when running Pod install inside the ios folder, so I am not sure these two issues are related however, the error does seem to be the same.

benjaminhorner avatar Sep 27 '23 08:09 benjaminhorner

first follow Notification Service Extension setup steps from the documentation after that run pod install --repo-update

dev-babar avatar Sep 30 '23 16:09 dev-babar

@babar7 Thank you so much! I can't believe I missed that. However, this doesn't entirely solve the issue as now I am getting the following error:

The 'Pods-Runner' target has frameworks with conflicting names: onesignalframework.xcframework, onesignalcore.xcframework, onesignalextension.xcframework, onesignalinappmessages.xcframework, onesignalnotifications.xcframework, onesignaloscore.xcframework, onesignaloutcomes.xcframework, and onesignaluser.xcframework

To solve that I had to refer to this issue.

I think the issue can be closed as I consider the issue solved.

benjaminhorner avatar Oct 02 '23 08:10 benjaminhorner

@Arpithaarha I faced the same issue and resolved it as follows: I manually created the target. In Xcode, go to "File" > "New" > "Target" > "Notification Service Extension." Fill in the necessary information, and then click "Cancel" when prompted to activate the scheme. This allows you to execute the pod install command and proceed with the installation guide.

If, when running flutter run, you encounter an error related to multiple build configurations, make sure to check the "Runner" and "OneSignal" targets. I resolved the issue by following these steps.

Marcel0Henrique avatar Nov 28 '23 17:11 Marcel0Henrique