Failed on bundling for macOS

Hi

In macOS (apple silicon m4) when running build everything works normal. But when trying to bundle macOS application i got this error

1. replacing existing signature
2. unsealed contents present in the bundle root

I’ve used the same device to bundle to iOS with no problem.

Maybe i miss something that need to be done first for bundling macOS Application?

Thank you for the help

I recognise this error. Are you using any Bundle Resources? I think you have files in the wrong place within your .app.

1 Like

Yes i’m using Bundle Resource.

The bundle for macOS works after removing the Bundle Resource from game.project.

Is there any step that need to be done before putting Bundle Resource in macOS? Maybe i miss that step

I’ve used the same Bundle Resource for bundling Android, Linux, iOS, Windows with no problem

Only when bundling for macOS, the bundle is failing

What does the folder structure look like? Where are you putting the bundle resources?

Here is the config and folder structure. I only have one common folder with one licence txt inside it


res folder

Ok, so that apache-2.txt will end up in the root of your .app right? That’s not the correct place if you intend to load it. The internals of an .app file is usually something like this (example from building with the Steam extension):

> tree Steam.app 
Steam.app
└── Contents
    β”œβ”€β”€ Info.plist
    β”œβ”€β”€ MacOS
    β”‚   β”œβ”€β”€ libsdkencryptedappticket.dylib
    β”‚   β”œβ”€β”€ libsteam_api.dylib
    β”‚   β”œβ”€β”€ Steam
    β”‚   └── steam_appid.txt
    └── Resources
        β”œβ”€β”€ game.arcd
        β”œβ”€β”€ game.arci
        β”œβ”€β”€ game.dmanifest
        β”œβ”€β”€ game.projectc
        └── game.public.der

Your apache-2.txt will end up on the same level as Contents:

Steam.app
β”œβ”€β”€ apache-2.txt
└── Contents
    β”œβ”€β”€ Info.plist

You need to replicate the folder structure in your bundle resources specifically for macOS with /res/osx/Contents/MacOS or /res/osx/Contents/Resources (depending on where in your .app you need the file).

1 Like

Ok, now i understand. The build is now going smoothly after i move the .txt file to Contents/Resources

Thank you for the help!! :saluting_face: :saluting_face: :saluting_face:

1 Like