如何修复“ App Store Connect Operation ERROR ITMS-90771”

我正在尝试将我的应用程序提交到 TestFlight,但是我一直得到这个错误。

enter image description here

这是我的 info.plist

enter image description here

我该怎么补救?

46644 次浏览

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.

  1. Goto your Info.plist file. Hover over any item + button will be highlighted. Click on it to add a new item.
  2. Copy and paste "BGTaskSchedulerPermittedIdentifiers" under the Information Property List column. This will create an array in the Type column.
  3. Click the add button on the item you just created to add background task identifiers for the array.
  4. Note that it is recommended by apple to mention task background task identifier in reverse domain notation(com.something.name).

In the end, it will look like this,

info plist image

For more info, you can refer to this Apple doc.

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>

Or Even Better:

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

Best

Add "BGTaskSchedulerPermittedIdentifiers" to "info.plist" by paying attention to a few points.

  1. Open info.plist file
  2. Add "Permitted background task scheduler identifiers" below the "Information Property List".(Using add (+) button)

Add "Permitted background task scheduler identifiers"

  1. Add a new item below "Permitted background task scheduler identifiers". (Make sure the arrow is pointing down i mean, it is not like that ">")

Add a new item

  1. Enter your bundleID as a value.