My company would like to add stickers and an iMessage app extension to our Unity3D game. Since we use automated build processes several times a day to build to iOS, we are constantly generating a new .xproj file for XCode, and need to make any changes to the project either through Unity3D directly, or in post-process build.
Since Unity3D doesn’t currently support stickers, it seems what I need to do is add a new target to the project through code. There is a library in BitBucket:
written by the Unity3D team, but not updated since October 2015 (14 months ago). Within it, the PBXProject class contains the internal function AddAppExtension() which is unreferenced.
(a) Does this function work? I haven’t seen any information in the forums about it within the last two years.
(b) Has anyone tried getting this to work with iMessage extensions?
@MichaelSc did you get anywhere with this? We want to add a sticker extension but like you it has to be fully automated as we’re always creating new Xcode projects.
Once you’ve added the XCode API to your project (you have to fudge the namespaces as per the instructions) you can add a post build trigger that does something like the following:
There’s a bit more you have to do to get sign the app extension with its own provisioning profile as well but it’s mostly possible with the current version of the XCode project manipulator.
It’s worth noting that while a stickers extension appears to work fine I am having trouble getting iMessage app extensions in general to open once they are built with the Unity app.
This is exactly the same link @dilmerval already provided and only tells us how to add a sticker pack manually. This thread is about adding it via code in an automated way.