Game Center not available on iPhone?

Hey all – 

So I have an iOS app that’s been running just fine for the last several weeks. Strangely though, in the last couple of days I get this console error when running it on a local iPhone:

[Device] WARNING: The 'gameNetwork' library is not available on this platform.

Has anyone seen this before? Seems like the ‘gameNetwork’ library should be on iPhone.

Thanks for any help – 

-Lucas

build.settings:

plugins = { ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true } }, ['plugin.texttospeech'] = { publisherId = 'com.spiralcodestudio', }, },

main.lua:

-- set up GameCenter local gameNetwork = require("gameNetwork") local function gameNetworkCallback( event ) utility.dprint( "-- Function Start: gameNetworkCallback" ) if (event.type == "showSignIn") then -- this is an opportunity to pause your game elseif (event.data) then core.temp.foundGameCenter = true end utility.dprint( "-- Function End: gameNetworkCallback" ) end local function gameNetworkCallback( event ) if ( event.type == "loadAchievements" ) then print("loadAchievements: " .. event.data[1].identifier) end end gameNetwork.request( "loadAchievements", { listener=gameNetworkCallback } )

I’m not too sure why you’re getting that error, but are you initializing game center before calling the request function?

UGH

Never mind. I got it. Too aggressive copy-pasting. Please note that the two functions have the same name. Surely that can’t be it?

thanks!

-Lucas

I’m not too sure why you’re getting that error, but are you initializing game center before calling the request function?

UGH

Never mind. I got it. Too aggressive copy-pasting. Please note that the two functions have the same name. Surely that can’t be it?

thanks!

-Lucas