IOS APP 闪退的问题,需要修改info.plist文件
1、1.检查是否出现下列错误信息:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
2、解决方法,在info.plist增加如下内容,copy下列内容就可
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
3、2.上传手机图片时,APP 闪退,提示下面错误:
2017-02-07 21:54:35.068959 DrawCircleProgress[946:239464] WF: _WebFilterIsActive returning: NO
2017-02-07 21:54:47.513984 DrawCircleProgress[946:239350] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-02-07 21:54:47.514540 DrawCircleProgress[946:239350] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-02-07 21:54:47.515815 DrawCircleProgress[946:239350] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-02-07 21:54:49.682933 DrawCircleProgress[946:239723] [access] This app has crashed because it attempted 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.
4、解决办法,在info.plish增加如下内容:
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
<key>NSMicrophoneUsageDescription</key>
<string>microphoneDesciption</string>
<key>NSContactsUsageDescription</key>
<string>contactsDesciption</string>
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>