Skip to main content
Inspiring
August 13, 2016
Question

NSAppTransportSecurity: An attribute or elements contains an invalid value...

  • August 13, 2016
  • 1 reply
  • 583 views

So I've done some reading and it seems that I need to add this:

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

to my InfoAdditions. The only problem is I'm getting, "An attribute or elements contains an invalid value in the application descriptor file."

This is what I have:

<iPhone>

    <InfoAdditions><![CDATA[

  <key>NSAppTransportSecurity</key>

  <dict>

    <key>NSAllowsArbitraryLoads</key>

    <true/>

  </dict>

  <key>UIDeviceFamily</key>

  <Array>

    <string>1</string>

  </Array>

]]>

</InfoAdditions>

    <requestedDisplayResolution>high</requestedDisplayResolution>

</iPhone>

Any ideas what might be wrong here? I'm using Air 22. I don't know if it's bugged or no longer supported.

This topic has been closed for replies.

1 reply

deesharm
Adobe Employee
Adobe Employee
August 16, 2016

Hi Korni,

The error is not coming because of NSAppTransportSecurity tag. The error is occurring because of <Array> tag. Please use <array> instead of <Array>. Refer below lines of code :

<key>NSAppTransportSecurity</key>

        <dict>

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

        </dict>

<key>UIDeviceFamily</key>

      <array>

      <string>1</string>

      <string>2</string>

     </array>

Thanks,

Adobe AIR Team