Skip navigation
Currently Being Moderated

ADT error "File [file] is not relative to directory [output]"

Apr 20, 2011 3:09 PM

Has anybody come accross this error before when adding files to include to via ADT?

 

For example:

 

adt -package -target ipa-test -storetype pkcs12 -keystore my.p12 -storepass mypass
-provisioning-profile my.mobileprovision my.ipa my-app.xml
my.swf icons Default.png  "../../../resources/fonts/FutuBd_.ttf"
 

 

In this case I am trying to include a file in the archive that is relative to the output directory.

My output directory is:

 

c:\projects\game\repo\bin\ios\

 

My font is in:

 

c:\projects\game\resources\fonts\FutuBd_.ttf

 

However I get the error:

 

File ../../../resources/fonts/FutuBd_.ttf is not relative to directory c:\projects\game\resources\fonts\FutuBd_ttf

 

But it actually is! 

Anybody have any idea?

 
Replies
  • Currently Being Moderated
    Apr 20, 2011 9:09 PM   in reply to Pea

    If you really have started that line with just 'adt', then you must have cd'd into the AIR SDK's bin folder before starting. You then just refer to 'my.ipa', which would then naturally output to the AIR SDK's bin folder, which I doubt is in that path relative location from the font file.

     

    Also, you have the font path in quotes, does that seem right?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2011 11:10 PM   in reply to Pea

    Pea, you'r right. I tried the way of relative path its not working

     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2011 10:22 AM   in reply to Pea

    I ran into the same problem last week. One of my colleagues points out that it sounds like a sandbox issue- so it might be intentional, and not a bug in the ADT. I haven't seen that part of the docs, though. If it's in the docs that way it sounds more like a bug to me....

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points