Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

Explorer ,
Aug 13, 2016 Aug 13, 2016

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
576
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 15, 2016 Aug 15, 2016
LATEST

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

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