Build error with build.settings

Hello,

I'm trying to build my app, which runs fine in the Corona Simulator. But I get this strange error:

"Using additional build settings from: path.to.file/build.settings
Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function '?'
?: in function '?'
?: in function <?:434>"

When I remove the build.settings, the app builds but shows a black screen after the trial message in the iOS simulator.

In the build.settings file:

"settings =
{
iphone =
{
plist =
{
UIStatusBarHidden = true,
UIAppFonts =
{
"Bradley.ttf"
}
},
},
}"

I don't know what is going wrong... It works perfectly in the corona simulator...

thanks...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
settings =
{
        orientation =
        {
                default = "landscapeRight",
        supported =
        {
        "landscapeRight", "landscapeLeft"
        },
        },
 
        iphone =
        {
                plist =
                {
                        UIStatusBarHidden=true,
                        UIPrerenderedIcon = true,
                },
        }
        
        
}

Okay, that works! Thanks :-). The orientation is required of why is this error being generated?

I tried this next thing and it didn't work... I need to lock it to portrait orientation :-)

settings =
{
orientation =
{
default = "portrait",
supported =
{
"portrait"
},
},

iphone =
{
plist =
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true,
UIAppFonts =
{
"Bradley_Hand_ITC.ttf"
},
},
}
}

Okay I got it to build correctly... There was something wrong with my Application Name... If I use just "Test" as a name, it all works correctly... Only my font won't show up in the iOS simulator... I've tried other fonts and they work, just not the one I want...

I'm trying to use this font: http://www.azfonts.net/load_font/itc_bradley_hand--bradhib.html

in my build.settings:

settings =
{
orientation =
{
default = "portrait",
supported =
{
"portrait"
},
},

iphone =
{
plist =
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true,
UIAppFonts={"itc_bradley_hand--bradhib.TTF"}
},
}

}

and in my code:

local gameFont = "Bradley Hand ITC TT Bold"
local teststring = display.newText("test", 0,0,gameFont,23)

it just won't work :)

Is the font also installed on your machine?

yes I installed it... I think there's something wrong with the font... I tried several other fonts and they all worked... Just not that font :).

Ah I see, I'm glad you got it working - I'm sorry to hear that font has problems, though. (I don't know the font personally.)

views:1632 update:2011/10/4 8:06:35
corona forums © 2003-2011