1 Reply Latest reply on Dec 10, 2011 4:23 PM by steamboy

    Using Native Extensions with Flex SDK 4.6.0

    steamboy

      Hi,

       

      I'm trying to get the Mac OSX Hello World example working with Flex SDK 4.6.0. I've changed over all of the places where it has 4.5.1/ etc, got the XCode project to compile properly, but I've got stumped on a problem on step 3. The output I get at the end of step 3 is:

       

      + '/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/bin/adt' -package -storetype PKCS12 -keystore src/assets/test.pfx -storepass none -target ane airrt.ane src/extension.xml -swc src/assets/com.airrt.extensions.swc -platform MacOS-x86 -C src/assets/platform/mac .

      Invalid swc file. The extension NameSpace requires the SWF verison to be 13 or lower.

      /Users/owenbennett/Documents/Projects/Flash/Native Extensions OSX/NativeExtensions

       

      Any ideas?


      Thanks,

       

      Owen

        • 1. Re: Using Native Extensions with Flex SDK 4.6.0
          steamboy Level 1

          Nevermind,

           

          Figured it out. Here are the steps I followed, using Flex SDK 4.6.0 and XCode 4.1:

           

          1. 00 - create cert -> go.sh and 01 - create swc -> go.sh and 03 - create ane -> go.sh and 04 - create dmg -> go.sh and 05 - run on adl -> go.sh and goall.sh

          change

          FLEX_SDK=/Applications/Adobe\ Flash\ Builder\ 4.5/sdks/4.5.1-air3.0

          to

          FLEX_SDK=/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0

           

          2. 02 - create platform extension -> mac -> TestNativeExtension -> TestNativeExtension.xcodeproj

          open the project in XCode, select the project root, then TARGETS -> TestNativeExtension -> Build Settings

          change Search Paths -> Framework Search Paths

          Debug: "$(SYSTEM_APPS_DIR)/Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac"

          Release: "$(SYSTEM_APPS_DIR)/Adobe Flash Builder 4.5/sdks/4.5.0-air3.0/runtimes/air/mac"

                         "$(SYSTEM_APPS_DIR)/Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac"

          to

          Debug: "$(SYSTEM_APPS_DIR)/Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac"

          Release: "$(SYSTEM_APPS_DIR)/Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac"

           

          If you want to check it's building OK, make sure to change the target (at the top by the run button) to TestNativeExtension > My Mac 32-bit

           

          3. 03 - create ane -> src -> extension.xml

          change

          <extension xmlns="http://ns.adobe.com/air/extension/2.5">

          to

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

           

          4. 04 - create dmg -> src -> NativeExtensionTest-app.xml and 04 - create dmg -> src -> assets -> NativeExtensionTest-app.xml and 05 - run on adl -> src -> NativeExtensionTest-app.xml

          change

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

          to

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

           

          and that should build for you!

           

          Owen