iTunes Connect upload rejected with invalid binary because of missing NSCalendarsUsageDescription

前端 未结 4 1018
北恋
北恋 2021-01-04 02:20

I\'m trying to upload an update for an existing App with XCode 8. After the upload I have received this email:

\"This app attempts to access privacy-s

4条回答
  •  孤街浪徒
    2021-01-04 02:49

    Stephen and Zachary Drake's answers are right :)

    On my side, my xcode project gets generated each time so here's a way to set these values from command line using PlistBuddy (I also needed NSCameraUsageDescription):

    /usr/libexec/PlistBuddy -c "Add :NSCameraUsageDescription string" ./Info.plist || true
    /usr/libexec/PlistBuddy -c "Set :NSCameraUsageDescription 'not used'" ./Info.plist
    
    /usr/libexec/PlistBuddy -c "Add :NSCalendarsUsageDescription string" ./Info.plist || true
    /usr/libexec/PlistBuddy -c "Set :NSCalendarsUsageDescription 'Some ad content may access calendar'" ./Info.plist
    
    /usr/libexec/PlistBuddy -c "Add :NSPhotoLibraryUsageDescription string" ./Info.plist || true
    /usr/libexec/PlistBuddy -c "Set :NSPhotoLibraryUsageDescription 'Some ad content may access photo library'" ./Info.plist
    

提交回复
热议问题