Hi!
We are using a postbuild-script to modify our xcode project.
Works great, but now we need your help. We are trying to add a “Notification Service Extension”-target from code (see picture).
We can add a new xcode target by using PBXProject.AddAppExtension, but with this we only get a “normal” target, not a specific “Notification Service Extension”-template-one…
Reason why we want this done by code is that we are trying to get OneSignal to work with Unity Cloud Build. We have step 1 ready and working from our script, but struggling with the second part in the setup guide found here: Unity SDK Setup
The type of extension is determined by the NSExtensionPointIdentifier entry in your extension’s Info.plist.
I managed to automate the creation of a notification service extension target and setting of all the annoying things that need to be set.
Below is the code I’m using