Highlighted

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

Explorer ,
Aug 13, 2016

Copy link to clipboard

Copied

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.

TOPICS
Development

Views

423

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Explorer ,
Aug 13, 2016

Copy link to clipboard

Copied

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.

TOPICS
Development

Views

424

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 13, 2016 0
deesharm LATEST
Adobe Employee ,
Aug 15, 2016

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 15, 2016 0