Highlighted

iOS ANE with resources

Contributor ,
Oct 25, 2015

Copy link to clipboard

Copied

Hello,

I'm building an iOS ANE with a third party lib framework + resources, so, I need to add both references to options.xml

Seems OK to framework but I received the following error when I tried to include resources: error 103: platform.packaged Resources is an unexpected element/attribute

    <packagedDependencies>

        <packagedDependency>ThirdLibAPI.embeddedframework/ThirdLibAPI.framework</packagedDependency>

    </packagedDependencies>

    <packagedResources>

  <packagedResource>

    <packageName>ThirdLibAPIResources</packageName>

    <folderName>ThirdLibAPI.embeddedframework</folderName>

  </packagedResource>

  </packagedResources>

Environment:

AIR 19 (final)

OSX 10.11.1

TOPICS
Development

Views

215

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

iOS ANE with resources

Contributor ,
Oct 25, 2015

Copy link to clipboard

Copied

Hello,

I'm building an iOS ANE with a third party lib framework + resources, so, I need to add both references to options.xml

Seems OK to framework but I received the following error when I tried to include resources: error 103: platform.packaged Resources is an unexpected element/attribute

    <packagedDependencies>

        <packagedDependency>ThirdLibAPI.embeddedframework/ThirdLibAPI.framework</packagedDependency>

    </packagedDependencies>

    <packagedResources>

  <packagedResource>

    <packageName>ThirdLibAPIResources</packageName>

    <folderName>ThirdLibAPI.embeddedframework</folderName>

  </packagedResource>

  </packagedResources>

Environment:

AIR 19 (final)

OSX 10.11.1

TOPICS
Development

Views

216

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
Oct 25, 2015 0
Nimisha1 LATEST
Oct 26, 2015

Copy link to clipboard

Copied

You're getting this error because iOS platform descriptor schema doesn't have <packagedResources> tag though Android has this tag. To include resources in iOS ANE follow this article http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.html#WScf70a6...

Following is iOS extension platform descriptor schema:

<?xml version="1.0"?>

<xs:schema

    xmlns:xs="http://www.w3.org/2001/XMLSchema"

    targetNamespace="http://ns.adobe.com/air/extension/3.5"

    xmlns="http://ns.adobe.com/air/extension/3.5"

    elementFormDefault="qualified"

>

<xs:element name="platform">

  <xs:complexType>

    <xs:all>

      <xs:element name="description"   type="LocalizableType" minOccurs="0"/>

      <xs:element name="copyright"     type="xs:string"       minOccurs="0"/>

      <xs:element name="sdkVersion" type="versionNumber" minOccurs="0" />>

      <xs:element name="linkerOptions" minOccurs="0">

    <xs:complexType>

      <xs:all>

        <xs:element name="option" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

      </xs:all>

    </xs:complexType>

      </xs:element>

      <xs:element name="packagedDependencies" minOccurs="0">

    <xs:complexType>

      <xs:all>

        <xs:element name="packagedDependency" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

      </xs:all>

    </xs:complexType>

      </xs:element>

    </xs:all>

  </xs:complexType>

</xs:element>

  <xs:simpleType name="versionNumber">

    <xs:restriction base="xs:string">

      <xs:pattern value='\d+(\.\d+(\.\d+)?)?'/>

    </xs:restriction>

  </xs:simpleType>

  <xs:complexType name="LocalizableType" mixed="true">

    <xs:sequence>

      <xs:element name="text" minOccurs="0" maxOccurs="unbounded">

        <xs:complexType>

          <xs:simpleContent>

            <xs:extension base="xs:string">

              <xs:attribute name="lang" type="xs:language" use="required"/>

            </xs:extension>

          </xs:simpleContent>

        </xs:complexType>

      </xs:element>

    </xs:sequence>

  </xs:complexType>

</xs:schema>

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...
Oct 26, 2015 0