Hi,
I’m working with Enterprise project and I still get the same error. -->
ERROR: Could not load provider (gamecenter) due to the following reason: module ‘CoronaProvider.gameNetwork.gamecenter’ not found:resource (CoronaProvider.gameNetwork.gamecenter.lu) does not exist in archive
I have the latest Enterprise Daily Build CoronaSDK 2014.2478
This is what I have done as Docs saying : http://docs.coronalabs.com/plugin/gameNetwork-apple/index.html
build.settings
settings = { plugins = { ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, }
main.lua
local gameNetwork = require( "gameNetwork" ) local loggedIntoGC = false local function initCallback( event ) if ( event.type == "showSignIn" ) then -- This is an opportunity to pause your game or do other things you might need to do while the Game Center Sign-In controller is up. elseif ( event.data ) then loggedIntoGC = true native.showAlert( "Success!", "", { "OK" } ) end end local function onSystemEvent( event ) if ( event.type == "applicationStart" ) then gameNetwork.init( "gamecenter", initCallback ) return true end end Runtime:addEventListener( "system", onSystemEvent )
The error from xCode6
2014-10-26 20:58:54.990 Super Free Throw[359:43091] Runtime error ERROR: Could not load provider (gamecenter) due to the following reason: module 'CoronaProvider.gameNetwork.gamecenter' not found:resource (CoronaProvider.gameNetwork.gamecenter.lu) does not exist in archive no field package.preload['CoronaProvider.gameNetwork.gamecenter'] no file '/private/var/mobile/Containers/Bundle/Application/B14295E2-E96B-4659-869A-BA4166C92129/Super Free Throw.app/CoronaProvider.gameNetwork.gamecenter.lua' no file '/private/var/mobile/Containers/Bundle/Application/B14295E2-E96B-4659-869A-BA4166C92129/Super Free Throw.app/CoronaProvider.gameNetwork.gamecenter.lua' no file './CoronaProvider.gameNetwork.gamecenter.so' no file '/private/var/mobile/Containers/Bundle/Application/B14295E2-E96B-4659-869A-BA4166C92129/Super Free Throw.app/CoronaProvider.gameNetwork.gamecenter.so' no file './CoronaProvider.so' no file '/private/var/mobile/Containers/Bundle/Application/B14295E2-E96B-4659-869A-BA4166C92129/Super Free Throw.app/CoronaProvider.so'CoronaProvider.gameNetwork.gamecenter. stack traceback: [C]: in function 'assert' ?: in function 'requireProvider' ?: in function 'setCurrentProvider'
Help please,