1.部分無法構建版本的解決方案
最近app上傳的時候碰到了的,上傳了好多次后臺都沒有構建出新版本,老大那個催啊,問這個,問那個,大神都告訴我經驗解決不了這些問題,后來一看蘋果給回復的郵件才懂了
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
iOS10好像訪問隱私數據需要使用說明,說白了就是要在info.plist文件里增加兩個鍵值對如圖一
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相機權限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
相冊權限
2.打印出來一大堆無用的東西(我也不知道有沒有用)
想要把它關掉也很簡單,來跟我做:
(1)同時按住comd+shift +, ?或者點擊如圖二所示的Edit Scheme
(2)如圖三選擇Run->Argument->Environment Variables 添一個鍵值對
(3)鍵值對如下,大功告成
? ?key:OS_ACTIVITY_MODE
value:disable