Skip to main content
October 8, 2012
Question

<Entitlements> in file Descriptor : Error 103 "application.iPhone.Entitlements..unexpected elements"

  • October 8, 2012
  • 2 replies
  • 1191 views

Hi,

I need to set Entitlements key in file descriptor.

If i include <Entitlements> section ADT says "error 103: application.iPhone.Entitlements is an unexpected element/attribute" !!

But in documentation there is this Element : http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSd6d4f896b3a8801b-3c9d92f81393051c54c-8000

My File Descriptor (without <Entitlements> section it works good):

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

<application xmlns="http://ns.adobe.com/air/application/3.0">

    <id>com.truc.test2</id>

    <name>Hello World iOS</name>

    <versionNumber>1.0.1</versionNumber>

    <filename>Comp1</filename>

    <supportedProfiles>mobileDevice</supportedProfiles>

    <initialWindow>

        <content>CompIPad.swf</content>

        <title>Comp1</title>

    </initialWindow>

    <iPhone>

             <Entitlements>

                <![CDATA[

                   <key>aps-environment</key>

                   <string>development</string>

                ]]>

             </Entitlements>

                       <InfoAdditions>

                                  <![CDATA[

                                                            <key>UIDeviceFamily</key>

                                                            <array>

                                                                <string>2</string>

                                                            </array>

                                  ]]>

                              </InfoAdditions>

                              <requestedDisplayResolution>high</requestedDisplayResolution>

                     </iPhone>

    <icon>

        <image29x29>icons/icon_29.png</image29x29>

        <image57x57>icons/icon_57.png</image57x57>

        <image72x72>icons/icon_72.png</image72x72>

        <image512x512>icons/icon_512.png</image512x512>

    </icon>

</application>

How can i do ?

Regards

System: Windows Seven

Trying with Adobe Air SDK 3.4 and 3.5 beta (same problem)

This topic has been closed for replies.

2 replies

Adobe Employee
October 8, 2012

Entitlements tag was introduced in namespace 3.1. Please update your app descriptor to use namespace 3.1 or above.

<application xmlns="http://ns.adobe.com/air/application/3.1">

-Neha

October 8, 2012

Perfect !!

Thanks