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

 时间:2026-02-14 03:38:19

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>

  • 标致301张紧轮如何拆卸
  • macbook pro升级ssd硬盘后,开不开机了怎么办?
  • 如何做东北蘸酱菜?
  • 如何签别喇叭响不响
  • 怎么做鹌鹑蛋焖鸭掌
  • 热门搜索
    胆结石最佳治疗方法 炒鱼片的家常做法 沙漠玫瑰的养殖方法 鼻炎流鼻涕怎么治疗 金鱼的饲养方法 鸡杂怎么做好吃 办信用卡最快的方法 菜谱大全 四川腊肉的腌制方法 宝宝感冒发烧怎么办