-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Adds new PBXGroup for OneSignalNotificationServiceExtension to project.pbxproj on every prebuild #197
Comments
@chriszs , thanks very much for this issue report. This should be resolved in the next release. |
Thank you! |
@rgomezp I'm still experiencing this issue with v2.0.2. Can you confirm whether this should of been resolved? Thanks. |
Yes, 2.0.2 should have the fix. Perhaps try re-installing your |
Thanks for the response @rgomezp ! |
What happened?
Additional PBXGroup references to
OneSignalNotificationServiceExtension
are being added to project.pbxproj every time I runexpo prebuild
, causing repetition like so:This despite some logging indicating the plugin detects the service extension is already generated:
Looking at the relevant code, it looks like the PBXGroup is added before this check.
It's a known problem that not all Expo Config Plugins are idempotent, but this plugin does a good job of being almost idempotent and it would great if it was fully so that I don't have to run
expo prebuild --clean
and reinstall all the pods each time.Steps to reproduce?
What did you expect to happen?
I expected to see one reference to OneSignalNotificationServiceExtension, instead of one per run.
OneSignal Expo SDK version
1.3.2 because I haven't yet migrated to react-native-onesignal 5.0, but I don't see a fix for this in 2.0.
Platform
iOS
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: