How to fix "App Store Connect Operation ERROR ITMS-90771"

I'm trying to submit my app to TestFlight, but I keep getting this error.

enter image description here

and this is what I have in my info.plist

enter image description here

How do I fix this?


Solution 1:

Add this in your info.plist and then resubmit your app

<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>

or if you use more than one BGTask then use this code

<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
    <string>com.yourCompanyName.appName1</string>
    <string>com.yourCompanyName.appName2</string>
</array>

Solution 2:

Or Even Better:

<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>

Best