iOS10出了以後,第一時間升級了Xcode,發現了一些問題。
1.選擇頭像,調用相冊的時候崩潰了。
打出來以後日誌:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an key with a string value explaining to the user how the app uses this data.
從這段話可以看出只要在info.plist加入一個key就可以解決,值的話隨意下,調用時的一個提示。
2.打印的時候出來很多無用的東西
只要在Edit Scheme - run中添加OS_ACTIVITY_MODE =disable即可