Hi Willy! So these are the steps you have to do:
Open your Xcode project.
In the Project Navigator, select the target for your project.
Navigate to the "Signing & Capabilities" tab.
Look for the "Capabilities" section and expand it.
Click on the "+" button to add a new capability.
In the search bar, type Background Modes and select it from the options.
This will enable the com.apple.runningboard.assertions.webkit entitlement.
Next, click on the "+" button again to add another capability.
In the search bar, type App Sandbox and select it from the options.
This will enable the com.apple.multitasking.systemmappassertions entitlement.
Xcode will automatically add these capabilities to your entitlements file and enable them for your app. (If needed, you can further customize the entitlements by expanding the added capabilities and adjusting their options.)
I hope my explanation helps you set up the entitlements in Xcode successfully. If you have any more questions, feel free to ask:)