He is building using Enterprise and Enterprise doesn’t use build.settings. Instead the native developer needs to setup their own Info.plist with values and include the libraries in their Xcode project. These libraries are available to download on the same page as the Enterprise daily build.
Plugin is there, but unfortunately it has a critical bug!
When you open the leaderboards it works fine, but when you click on “Ok” button on the top right to close them it crashes the app all the time both on iOS 7.0 and 8.0 on iPhone and iPad.
I am having problem with game center with corona version 2014.2467
it says the following when trying to run on ios simulator:
Oct 18 13:17:47 MacBook-Air.local Test Game[9036]: 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 '/Users/Hayk/Library/Developer/CoreSimulator/Devices/636E3952-6F5C-4624-8E99-18869BE599B3/data/Containers/Bundle/Application/DBCB1521-075E-453B-B7D7-DBB6B7AB5519/Test Game.app/CoronaProvider.gameNetwork.gamecenter.lua' no file '/Users/Hayk/Library/Developer/CoreSimulator/Devices/636E3952-6F5C-4624-8E99-18869BE599B3/data/Containers/Bundle/Application/DBCB1521-075E-453B-B7D7-DBB6B7AB5519/Test Game.app/CoronaProvider.gameNetwork.gamecenter.lua' no file './CoronaProvider.gameNetwork.gamecenter.so' no file '/Users/Hayk/Library/Developer/CoreSimulator/Devices/636E3952-6F5C-4624-8E99-18869BE599B3/data/Containers/Bundle/Application/DBCB1521-075E-453B-B7D7-DBB6B7AB5519/Test Game.app/CoronaProvider.gameNetwork.gamecenter.so' no file './CoronaProvider.so' no file '/Users/Hayk/Library/Developer/CoreSimulator/Devices/636E3952-6F5C-4624-8E99-18869BE599B3/data/Containers/Bundle/Application/DBCB1521-075E-453B-B7D7-DBB6B7AB5519/Test Game.app/CoronaProvider.so'CoronaProvider.gameNetwork.gamecenter. stack traceback: [C]: in function 'assert' ?: in function 'requireProvider' ?: in function 'setCurrentProvider' /Users/perry/src/corona/core/main/plugins/gameNetwork/ios/../shared/gameNetwork.lua:18: in function 'init' /Users/Hayk/games/Test Game/game/main.lua:235: in function 'Initialize' /Users/Hayk/games/Test Game/game/main.lua:247: in main chunk Oct 18 13:17:47 MacBook-Air.local securityd[9018]: SecTaskCopyAccessGroups No keychain access group specified whilst running in simulator, falling back to default set
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
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'
Enterprise does not use build.settings. You have to include the object library in your project. Your account on the forums shows you are a starter, so if you’re working with a trial of Enterprise, I don’t know that the plugins are available for the trial.
i am using Corona Enterprise 2014.2438 with xcode 6 GM and when i try to run it in iphone 6 simulator i got some error that say
module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in archive
and here is some from xcode
2014-09-19 00:41:47.682 App[79708:1529797] Platform: iPhone Simulator / x86_64 / 8.0 / Apple Software Renderer / OpenGL ES 2.0 APPLE-10.1.4 / 2014.2434
2014-09-19 00:41:47.709 App[79708:1529797] Runtime error
module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in archive
no field package.preload[‘gameNetwork’]
no file ‘/Users/jonas/Library/Developer/CoreSimulator/Devices/F3419792-7DF4-4F91-BEFD-710DB5D65060/data/Containers/Bundle/Application/BFD8EF85-0EA0-47ED-B877-A04F158C263F/App.app/gameNetwork.lua’
no file ‘/Users/jonas/Library/Developer/CoreSimulator/Devices/F3419792-7DF4-4F91-BEFD-710DB5D65060/data/Containers/Bundle/Application/BFD8EF85-0EA0-47ED-B877-A04F158C263F/App.app/gameNetwork.lua’
no file ‘./gameNetwork.so’
I think we were moving GameCenter to a plugin due to issue with Apple flagging it as a private API. I’m not sure if that’s rolled into a daily build or not.
But in general, for plugins, you have to download the plugins file for the Enterprise build you’re using and include the various plugin objects in your projects. Look to see of there is a game networking one.