Runs in emulator but not on iPhone.

Hi.

I’am trying Corona SDK out to see if it’s fits my needs for at cross platform enviroment (eg not paying yet - but find it very interesting).

I’am using build 2011.704 - is there a newer version/build?

Can someone tell me what i’m doing wrong here:

xcode debugger says:

Lua Runtime Error: lua_pcall failed with status: 2, error message is: ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’

for this line in lua:

physics.addBody(twitterIcon, “dynamic”, { bounce = 0.8 } )

Here is some of the surrounding code:

title.text = “1”
twitterIcon = display.newImage(“image/Twitter_48x48.png”)
title.text = “2”
physics.addBody(twitterIcon, “dynamic”, { bounce = 0.8 } )
title.text = “3”
group:insert(twitterIcon)
title.text = “4”

Thanks in advance [import]uid: 131983 topic_id: 23549 reply_id: 323549[/import]

Do you definitely have an image in the image/ directory called Twitter_48x48.png ? Devices are Case Sensitive when it comes to directory and file names.

image/ and Image/ are different things.

Twitter_48x48.png is different to twitter_48x48.png [import]uid: 10389 topic_id: 23549 reply_id: 94605[/import]

Great it works, thanks. Coming from a windows environment, case-sensitive was the last thing I would think of… lesson learnt :slight_smile: [import]uid: 131983 topic_id: 23549 reply_id: 94901[/import]