diff --git a/onesignal/withOneSignalIos.ts b/onesignal/withOneSignalIos.ts index 590679d..e3593e7 100644 --- a/onesignal/withOneSignalIos.ts +++ b/onesignal/withOneSignalIos.ts @@ -166,7 +166,7 @@ const withOneSignalXcodeProject: ConfigPlugin = (config, p // files / folder appear in the file explorer in Xcode. const groups = xcodeProject.hash.project.objects["PBXGroup"]; Object.keys(groups).forEach(function(key) { - if (groups[key].name === undefined) { + if (typeof groups[key] === "object" && groups[key].name === undefined && groups[key].path === undefined) { xcodeProject.addToPbxGroup(extGroup.uuid, key); } }); diff --git a/package.json b/package.json index d322582..743a56d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "onesignal-expo-plugin", - "version": "2.0.2", + "version": "2.0.3", "description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.", "main": "./app.plugin.js", "scripts": {