March 21, 2011 - 1 comment.

Root content is missing from package

With the release of Air 2.6 today I decided to venture back into the world of Air for IOS development just to see how good the improvements were. Using the Air SDK and my Ant scripts I ran into an issue when trying to compile my swf for IOS. The compiler was returning the following error...

Root content FlashIOS.swf is missing from package


This was an error related to the location of my main swf as I had described it within my descriptor file. After a little browsing of the net and various trial and error it was merely a simple case of the descriptor file takes the relative path from the project root. For example if you are using the standard flash builder template as I was where all files are placed into the bin-debug file, it is necessary to label the path file as shown below.

<initialWindow><content>bin-debug/FlashIOS.swf</content>

This is just a small issue but never seemed to be clearly addressed in my searches - you would presume the compiler would run from the directory set in the compile script but this wasn't to be.

Published by: nick in Flash, Flex

Comments

Karl
May 22, 2011 at 12:26 pm

Thank you! This error was driving me crazy!
You made my day.. 🙂

Leave a Reply