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… [import]uid: 82552 topic_id: 14164 reply_id: 314164[/import]

[code]settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”
},
},

iphone =
{
plist =
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true,
},
}

}[/code]
Try something like that, with your font added in, obviously. Let me know results :slight_smile: [import]uid: 52491 topic_id: 14164 reply_id: 52275[/import]

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 :slight_smile:

settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”
},
},

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

[import]uid: 82552 topic_id: 14164 reply_id: 52291[/import]

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 :slight_smile: [import]uid: 82552 topic_id: 14164 reply_id: 52314[/import]

Is the font also installed on your machine? [import]uid: 52491 topic_id: 14164 reply_id: 52454[/import]

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 :). [import]uid: 82552 topic_id: 14164 reply_id: 52564[/import]

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.) [import]uid: 52491 topic_id: 14164 reply_id: 52634[/import]