zoukankan      html  css  js  c++  java
  • 升级Xcode7&iOS9后,出现NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -980X)

    在info.plist里面添加如下内容即可:

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

     

     ========

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

    <plist version="1.0">

    <dict>

    <key>CFBundleDevelopmentRegion</key>

    <string>en</string>

    <key>CFBundleExecutable</key>

    <string>$(EXECUTABLE_NAME)</string>

    <key>CFBundleIdentifier</key>

    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>

    <key>CFBundleInfoDictionaryVersion</key>

    <string>6.0</string>

    <key>CFBundleName</key>

    <string>$(PRODUCT_NAME)</string>

    <key>CFBundlePackageType</key>

    <string>APPL</string>

    <key>CFBundleShortVersionString</key>

    <string>1.0</string>

    <key>CFBundleSignature</key>

    <string>????</string>

    <key>CFBundleVersion</key>

    <string>1</string>

    <key>LSRequiresIPhoneOS</key>

    <true/>

    <key>UIRequiredDeviceCapabilities</key>

    <array>

    <string>armv7</string>

    </array>

    <key>UIStatusBarHidden</key>

    <true/>

    <key>UISupportedInterfaceOrientations</key>

    <array>

    <string>UIInterfaceOrientationPortrait</string>

    </array>

        <key>NSAppTransportSecurity</key>

        <dict>

            <key>NSAllowsArbitraryLoads</key>

            <true/>

        </dict>

        </dict>

    </plist>

  • 相关阅读:
    apache httpd配置问题
    php文件上传进度控制模块
    “fixed” css style in mobile safari
    第八周进度表
    大白鱼团队项目计划表
    第七周进度表
    结对开发团队成员以及题目介绍
    软件工程结对作业01
    软件工程子数组求和1
    软件工程子数组求和2
  • 原文地址:https://www.cnblogs.com/seeworld/p/6211414.html
Copyright © 2011-2022 走看看