Skip to content

[PLATFORM]: runtime bug Apple game network is missing when building to device #879

@dethier1958

Description

@dethier1958

I am building for iOS from my M4 Mac Mini. When I build to my iPhone 16 Pro and run my app after it transfers, there is a runtime error: module gameNetwork not found. In looking at the build log, I see the following entries that might be causing this:

                ld: warning: section __DATA/__cfstring is not pointer aligned in /Users/dethier/Desktop/Cushion Caroms.app/.build/CoronaProvider.gameNetwork.apple/libgamenetwork-apple.a[arm64][2](Rtt_IPhoneGameCenter.o)
                ld: warning: no platform load command found in '/Users/dethier/Desktop/Cushion Caroms.app/.build/CoronaProvider.gameNetwork.apple/libgamenetwork-apple.a[arm64][2](Rtt_IPhoneGameCenter.o)', assuming: iOS
                ld: warning: mixed ObjC ABI, /Users/dethier/Desktop/Cushion Caroms.app/.build/CoronaProvider.gameNetwork.apple/libgamenetwork-apple.a[arm64][2](Rtt_IPhoneGameCenter.o) compiled without category class properties
                ld: warning: no platform load command found in '/Users/dethier/Desktop/Cushion Caroms.app/.build/CoronaProvider.gameNetwork.apple/libgamenetwork-apple.a[arm64][3](Rtt_IPhoneGameCenterEvent.o)', assuming: iOS
                ld: warning: no platform load command found in '/Users/dethier/Desktop/Cushion Caroms.app/.build/CoronaProvider.gameNetwork.apple/libgamenetwork-apple.a[arm64][4](IOSGameCenterProvider.o)', assuming: iOS</result>

My build settings for gameNetwork include:

   entitlements = { [ "com.apple.developer.game-center" ] = true, },

which is inside the iphone brackets and outside of the plist brackets, and

plugins = {
    [ "CoronaProvider.gameNetwork.apple" ] = { 
    	publisherId = "com.coronalabs",
    	supportedPlatforms = { iphone = true }
    	},
	},

I think my settings are correct. I did enable game center in my developer account for this app and use a profile that includes that. So how do I get this to build correctly? Thanks.

build.settings.txt

Build to Device Log.txt

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions