Unity Cloud Build deletes symbolic links in the final zipped app, resulting in damaged builds

Hello there,

I build my game as a MacOS app via Unity Cloud Build. In order to run some specifics features of my games, I need to include a “Framework Bundle” (a package following Apple standards).

As described in Apple documentation, Framework Bundles are folders that have a specific structure and which contain symbolic links :

MyFramework.framework/
    MyFramework  -> Versions/Current/MyFramework
    Resources    -> Versions/Current/Resources
    Versions/
        A/
            MyFramework
            Resources/
                English.lproj/
                    InfoPlist.strings
                Info.plist
        Current  -> A

For example, “Resources” points to “Versions/Current/Resources”.

When the Unity Cloud Build’s build agent processes the build, symbolic links are still present in the build directory (I checked that using logs on UCB). The problem is that, once the build completes, the sym links are completely destroyed in the .zip file downloadable from Unity Cloud Build. The way UCB zips the applications seem not to accept sym links, which result in providing damaged builds that cannot be opened on Mac.

Looks like a bug on UCB. Did someone have the same issue?

1 Like

Yes, I’ve got the same issue here… Build runs successfully and also completes notarization without issues, but the downloaded build doesn’t work (“damaged, move to trash” message)

Hey folks, for something like this would suggest filing a ticket: https://support.unity.com/hc/en-us/requests/new?ticket_form_id=360001886591&organizationId=1374548747974&previousPathname=%2Forganizations%2F1374548747974%2Fprojects%2F1aea3386-7554-49d5-bae7-98f6bdedeafa%2Fcloud-build%2Fsupport&projectId=1aea3386-7554-49d5-bae7-98f6bdedeafa&_gl=1*1snb2gr*_ga*MTkxOTE4OTMzOS4xNTQ2NjQ2ODY2*_ga_1S78EFL1W5*MTYyNDkzNDU0OS4zMC4xLjE2MjQ5MzY5NTkuNjA.&_ga=2.126081993.513988148.1624821375-1919189339.1546646866&_gac=1.21017673.1622757614.Cj0KCQjw--GFBhDeARIsACH_kdYr3-9kvJyFFnBOeRlStFKPF2LCMDBpF6bjsDcPqy6lXRcGVQtR84MaAmnmEALw_wcB/.

That’ll be the fastest way for the team to check out and see if this is a bug or not (and fix it if so).

Thanks for your suggestion @rajivrao , I have already opened a ticket a month ago to raise this issue.
Even if it looks like the issue is acknowledged, it’s still not fixed nor in the process of being fixed. Here is the last answer I received from the support:

Unfortunately, I’ve not seen any further investigation from the dev team on this issue yet, but the task is still open with the team. I’ll continue to keep an eye on it, but feel free to poke me again any time as well.

I have sent a lot of details about the issue and also allowed the team to build my project to reproduce the issue.

Maybe you could have a look on it and/or poke the dev team to figure out whether they will be able to tackle this ticket?
The ticket number is: 1052086 (https://support.unity.com/hc/en-us/requests/1052086)

Thanks for your help :slight_smile:

@Nith666 if you want I can add you in cc of the support request in order for you to be informed of its resolution. Give me your e-mail in DM if it’s the case.

Thanks for the update and detail. Will circle back with the team and see what’s going on here.

1 Like

Hello there.

We pushed some changes and symlinks should be preserved in new builds after unzipping macOS artifacts.

Best regards,
Marcelo

1 Like