-
Notifications
You must be signed in to change notification settings - Fork 53
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]: Build fails with "The file reference for "OneSignalNotificationServiceExtension" is a member of multiple groups ("Pods" and "")" after updating xcode to 15.2 #226
Comments
Having this issue as well. Every time I run prebuild OneSignal gets added as a build target, even if there already is an instance of it as a target. I end up having to open XCode manually to delete these new build targets, or else builds simply won't work. |
What should I do in Xcode to solve the problem? |
Same here, and I have no XCode as my project is expo managed |
Ok after building the app a LOT of times on EAS, I managed to narrow down the problematic line in our case. It turns out that removing configuration line Anybody have an idea what this could be? would be very grateful for any hints! EDIT: Solution foundAfter a lot of hair pulling I found the cause of my issue: In the XCode logs there was a line about provisioning profile:
After going to my apple developer's account, I found the provisioning profile section (which was overloaded with too many profiles) and delete many Expired and Invalid profiles. Then I re-generated new provisioning profiles with the command Hope this helps |
I have the same problem and the solution provided by @gkpo doesn't seem to help unfortunately |
Motivation: other groups may have an undefined "name" property other than the top level Fix #226
for me the solution was to delete invalid and expired profiles and certificates in the apple account, and generate them all again via eas credentials, both for the app and for the onesignal extension. |
Fixed. Install 2.0.3 |
After updating Xcode to version 15.2, my ios app build fails with this error.
I think I found the issue and also a possible solution, but I have no real experience with xcode, so please doublecheck it.
When adding the OneSignal PBXGroup to the Toplevel Group, this code makes the assumption, that the top level group is the only group without a name:
onesignal-expo-plugin/onesignal/withOneSignalIos.ts
Lines 165 to 172 in d1e9927
This assumption seems to be outdated with the most recent xcode version. This is a console.log of all the groups of my project during prebuild:
I noticed, that this group:
has no name either and that the script wrongfully adds onesignal to it, which seems to cause this error.
You can also notice, that the implicit assumption of the current code:
is that a group is allways represented by a js object. This seems to be outdated as well, there are entries that contain strings for comments.
I fixed the issue locally on my machine by changing the if condition to:
I cannot completely verify this solution as I have a second issue unrelated to onesignal blocking my build, but maybe these findings will help someone.
The text was updated successfully, but these errors were encountered: