你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> iOS10之Expected App Behaviors

iOS10之Expected App Behaviors

編輯:IOS開發綜合

在這裡將為大家引見的是IOS10之Expected App Behaviors的相關內容,詳細內容請看上面

  昨天上架到appStore的時分碰到個問題,構建好後上傳到itunesconnect的的包都用不了,

顯示錯誤為:此構建版本有效。

或許英文顯示為:ITC.apps.preReleaseBuild.errors.invalidBinary

IOS10之Expected App Behaviors......This app attempts to Access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data. Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team

意思是app的配置文件info.plist少了一個app懇求運用設備藍牙的懇求配置:NSBluetoothPeripheralUsageDescription

然後加上後,再次打包上傳就可以運用了!

查了下材料,apple從IOS10之後,Expected App Behaviors(預期使用行為),關於用戶的隱私愈加注重,假如需求訪問用戶手機的相機、多媒體、藍牙、通訊錄、地位、安康、運動...等等,必需訊問用戶征得用戶受權才可以運用。

官方闡明鏈接:

https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ExpectedAppBehaviors/ExpectedAppBehaviors.html

iOS10之Expected App Behaviors

檢查info.plist的source code,展開如下:

iOS10之Expected App Behaviors<key>NSBluetoothPeripheralUsageDescription</key> <string>能否允許此App訪問您的藍牙</string> <key>NSCalendarsUsageDescription</key> <string>能否允許此App訪問您的日歷</string> <key>NSCameraUsageDescription</key> <string>能否允許此App運用您的相機</string> <key>NSContactsUsageDescription</key> <string>能否允許此App訪問您的通訊錄</string> <key>NSHealthShareUsageDescription</key> <string>能否允許此App訪問您的安康分享</string> <key>NSHealthUpdateUsageDescription</key> <string>能否允許此App訪問您的安康更新</string> <key>NSHomeKitUsageDescription</key> <string>能否允許此App訪問您的HomeKit</string> <key>NSLocationAlwaysUsageDescription</key> <string>我們需求經過您的天文地位信息獲取您周邊的相關數據</string> <key>NSLocationWhenInUseUsageDescription</key> <string>您的地位信息將用於地圖上顯示您的地位,並發送給聯絡人</string> <key>NSMicrophoneUsageDescription</key> <string>能否允許此App運用您的麥克風</string> <key>NSMotionUsageDescription</key> <string>App需求您的贊同,才干訪問運動與健身</string> <key>kTCCServiceMediaLibrary</key> <string>能否允許此App訪問您的音樂</string> <key>NSPhotoLibraryUsageDescription</key> <string>能否允許此App訪問您的媒體材料庫</string> <key>NSRemindersUsageDescription</key> <string>能否允許此App訪問您的提示事項</string> <key>NSSiriUsageDescription</key> <string>能否允許此App訪問您的Siri</string> <key>NSSpeechRecognitionUsageDescription</key> <string>能否允許此App運用您的語音辨認</string> <key>NSVideoSubscriberAccountUsageDescription</key> <string>能否允許此App訪問您的tv供給商賬戶</string>

原文鏈接:http://www.cnblogs.com/tandaxia/p/6207236.html

多多關注本站,我們將為您搜集更多的Android開發相關文章.

【iOS10之Expected App Behaviors】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved