iOS Build Error in Solar2D 2024.3711 - Mac 15.1, Xcode 16.1

Hi all, I’m getting this error when trying to compile iOS app:

Undefined symbols for architecture arm64:
OBJC_CLASS$_GACAppAttestProvider”, referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o)
OBJC_CLASS$_GACAppCheck”, referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o)
OBJC_CLASS$_GACAppCheckDebugProvider”, referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o) “OBJC_CLASS$_GACAppCheckSettings”,
referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o) ld:
symbol(s) not found for architecture arm64 clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture arm64: “OBJC_CLASS$_GACAppAttestProvider”, referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o) “OBJC_CLASS$_GACAppCheck”, referenced from: objc-class-ref in GoogleSignIn(GIDAppCheck.o)
ld: symbol(s) not found for architecture arm64 clang++: error:
linker command failed with exit code 1 (use -v to see invocation)

iOS SDK selected is 18.1 Metal

@Scott_Harrison

Linking problems usually result from a mismatch between the version of iOS you are targeting and one of your plugins.

If you look 14 lines above the Build Error warning, you’ll see the message newer version of iOS (12.0) than being linked (11.0)

Try disabling plugins until you are able to build successfully. (Maybe start with
com.coronalabs-plugin.notifications.v2.firebase since you seem to be getting a bunch of warnings about that.)

Cheers for the reply, I did a bit of trial and error and was able to compile by disabling the GoogleSignIn plugin in build.settings, although i do need it for the app to run smoothly. the build.settings entry for the GoogleSignIn plugin does have the right marketplace ID, im not sure if it’s to do with the targeting of a higher iOS since this error appears for both metal/non-metal:

Metal is a graphics and shading API. The version of iOS you are targeting is related to the version of Xcode and Solar2D you are using.

plugin.googleSignIn hasn’t been updated since February 2022, and from what you’re saying, it sounds like it’s incompatible with the latest version of iOS. plugin.googleSignIn is one of Scott’s plugins from the Solar2d Marketplace. He’s got a whole bug report form over there, so you should probably let him know about the issue so he can update the plugin.

Link to Scott’s vendor page here.

1 Like

This has been fixed, please rebuild