OneSignal-Flutter-SDK
OneSignal-Flutter-SDK copied to clipboard
[question]: [!] Unable to find a target named `OneSignalNotificationServiceExtension` in project `Runner.xcodeproj`, did find `Runner` and `OneSignalServiceNotificationExtension`.
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
Same issue here.
Same here. Any solution?
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 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.
first follow Notification Service Extension setup steps from the documentation after that run
pod install --repo-update
@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.
@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.