일모도원(日暮途遠) 개발자

[XCode] BGTaskSchedulerPermittedIdentifiers 본문

iOS개발/오류수정

[XCode] BGTaskSchedulerPermittedIdentifiers

달님개발자 2022. 8. 7. 23:29
반응형

TestFlight로 앱을 올리는 중에 BGTaskSchedulerPermittedIdentifiers 에러를 만났다.

 

App Store Connect Operation Error

 

Missing Info.plist value. The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' must contain a list of identifiers used to submit and handle tasks when 'UIBackgroundModes' has a value of 'processing'. For more information, refer to the Information Property List Key Reference at https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html. With error code STATE_ERROR.VALIDATION_ERROR.90771 for id 82316974-6e49-4b8c-b5e2-d6607056447a

 

 

 

에러 내용을 읽어보면 Info.plist에 UIBackgroundModes에 processing 값이 있으면 BGTaskSchedulerPermittedIdentifiers를 반드시 포함하라고 한다.

(The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' must contain a list of identifiers used to submit and handle tasks when 'UIBackgroundModes' has a value of 'processing'. )

 

그래서 아래처럼  Info.plist에 BGTaskSchedulerPermittedIdentifiers 키와 $(PRODUCT_BUNDLE_IDENTIFIER) 값을 넣어주면 이상없이 업로드 된다.

 

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