Can't get ads to show because....

Discussion in 'Technical Discussion' started by l_beav, Dec 16, 2015.

  1. l_beav

    l_beav Boxer

    Joined:
    Sep 25, 2015
    Messages:
    50
    Likes Received:
    4
    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.

    Does anyone know how to fix the above issue? I am following the advice here:

    http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http

    ..but that is not working for me. Any help would really be appreciated. I submitted my app anyways hoping the ads would show up for other people but I don't know if they will. Thanks.
     
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Hmm... never seen this before. Looks like it might be an Xcode 7 issue. I would try Xcode 6.4 and see if the issue goes away.
     
  3. l_beav

    l_beav Boxer

    Joined:
    Sep 25, 2015
    Messages:
    50
    Likes Received:
    4
    I got it to work... I just didn't know how to add a sub key correctly in the plist. I added two keys instead of a key and then a subkey (right click the key and hit "add row" for the subkey). Yes, it is the latest xcode.... there is like 3 more steps you have to take now in the newest xcode.
     
  4. netkomm

    netkomm Avid Boxer

    Joined:
    Nov 23, 2015
    Messages:
    274
    Likes Received:
    143
    The "Transport Security" feature has been included so that only secure connections will be used to transfer content over to the application.

    With XCode 7 we can still disable this option. In future releases it might become compulsory to use only the "https" protocol

    To disable the feature, you can simply add the following code within the info.plist file in your exported project

    <key>NSAppTransportSecurity</key>
    <dict>

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

Share This Page