NSUserTrackingUsageDescription error(The app's Info.plist must contain~)

2022. 2. 22. 14:12iOS/Xcode Error

728x90
반응형

아이폰 11버전 이하에서 아래와 같은 오류 문구를 뱉으며 앱이 크래시가 났음.

The app's Info.plist must contain an NSUserTrackingUsageDescription key with a string value explaining to the user how the app uses this data.

 

앱이 14버전 이상이고,

splashVC에서 

ATTrackingManager.requestTrackingAuthorization 설정을 해줬었는데(available iOS14로), 안됐던게 의아했음.

(코드로 설정해줬으면 info.plist에서 설정 안해줘도 되는거아닌가.. 라고 생각했었는데)

 

info.plist에

키값을 Privacy - Tracking Usage Description로주고

value를 "개인맞춤광고"를 넣어줘서 해결.(동료랑 string값 똑같이 맞췄음)

 

 

 

728x90
반응형