platformVersion woes

I’m trying to show a Game Center launch button for compatible devices but woe is me. This is working in the simulator, but on the iPhone it hangs the whole scene and nothing shows:

if( tonumber(system.getInfo( “platformVersion” ))>4)then
GCButton = ui.newButton{
default = “GC.png”,
over = “GCon.png”,
onRelease = showGC,
id = “2”,
text = “”
}
GCButton.x=150
GCButton.y=200
obj:insert(GCButton)
end

I mean the scene shows nothing and there are a bunch of other graphics which are even inserted before the GC button. Any ideas? Am I doing something way the heck wrong?

using: Corona simulator Version 2011.591 (2011.8.2)
testing on an iPhone iOS 4.2.10

Thanks! [import]uid: 8139 topic_id: 15634 reply_id: 315634[/import]

p.s.

I can print the platform version with display.newtext no problem, it’s just somehow whatever I am doing in the if statement is blowing up the whole scene, I mean I get nothing.
[import]uid: 8139 topic_id: 15634 reply_id: 57703[/import]

You can get some more info on what is happening by keeping your iPhone connected and checking out the log on Xcode - see what that tells you. [import]uid: 52491 topic_id: 15634 reply_id: 57741[/import]