IOS APP 闪退的问题,需要修改info.plist文件

2025-04-21 16:26:08

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.06895刻八圄俏9 DrawCircleProgress[946:239464] WF: _WebFilterIsActive returning: NO2017-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 restriction2017-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 restriction2017-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 restriction2017-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> <strin爿讥旌护g>photoLibraryDesciption</string> <key>NSMicrophoneUsageDescription</key> <string>microphoneDesciption</string> <key>NSContactsUsageDescription</key> <string>contactsDesciption</string> <key>NSCameraUsageDescription</key> <string>cameraDesciption</string>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢