1.部分無(wú)法構(gòu)建版本的解決方案
最近app上傳的時(shí)候碰到了的,上傳了好多次后臺(tái)都沒(méi)有構(gòu)建出新版本,老大那個(gè)催啊,問(wèn)這個(gè),問(wèn)那個(gè),大神都告訴我經(jīng)驗(yàn)解決不了這些問(wèn)題,后來(lái)一看蘋果給回復(fù)的郵件才懂了
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好像訪問(wèn)隱私數(shù)據(jù)需要使用說(shuō)明,說(shuō)白了就是要在info.plist文件里增加兩個(gè)鍵值對(duì)如圖一

<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相機(jī)權(quán)限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
相冊(cè)權(quán)限
2.打印出來(lái)一大堆無(wú)用的東西(我也不知道有沒(méi)有用)

想要把它關(guān)掉也很簡(jiǎn)單,來(lái)跟我做:
(1)同時(shí)按住comd+shift +, ?或者點(diǎn)擊如圖二所示的Edit Scheme

(2)如圖三選擇Run->Argument->Environment Variables 添一個(gè)鍵值對(duì)

(3)鍵值對(duì)如下,大功告成
? ?key:OS_ACTIVITY_MODE
value:disable