I'm trying to submit my app to TestFlight, but I keep getting this error.
and this is what I have in my info.plist
How do I fix this?
I'm trying to submit my app to TestFlight, but I keep getting this error.
and this is what I have in my info.plist
How do I fix this?
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>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
Best
As it says you need to add "BGTaskSchedulerPermittedIdentifiers" to your info.plist. You have turned on background task capabilities for your app but did not add corresponding identifiers.
In the end, it will look like this,
For more info, you can refer to this Apple doc.
Add "BGTaskSchedulerPermittedIdentifiers" to "info.plist" by paying attention to a few points.
Add "Permitted background task scheduler identifiers"