DrMoriarty / godot-ios-att

App Tracking Transparency plugin for Godot Engine
MIT License
10 stars 5 forks source link

Undefined symbols for architecture arm64 #4

Open jclover-collums opened 1 year ago

jclover-collums commented 1 year ago

I'm using an M1 Machine to build a Godot Mobile Game. However, I am receiving the following error after installing this lib using XCode:

Undefined symbols for architecture arm64:
  "Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&)", referenced from:
      ATT::requestTracking() in ios-att.a(godot_plugin_class.o)
      ____ZN3ATT15requestTrackingEv_block_invoke in ios-att.a(godot_plugin_class.o)
     (maybe you meant: Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&))
ld: symbol(s) not found for architecture arm64

I have no idea how to fix this, suggestions would be appreciated.

rzuf79 commented 1 year ago

Seems like we both encountered the same issue yesterday. Ha! The problem is emit_signal method - its signature got changed with 3.5 version of Godot. I rebuilt the plugin and it works fine for me: https://github.com/rzuf79/godot-ios-plugins/releases/tag/3.5.0

jclover-collums commented 1 year ago

Hero! I ended up going ahead and just writing my own ATT plugin following the GameCenter plugin approach (event queue). I'm still fairly new to Godot, so it's been a bit of a learning curve with Scons + Export Templates!

jclover-collums commented 1 year ago

I'll leave this open as it does actually need fixing in this repo I guess!

rzuf79 commented 1 year ago

Nice! Yea, I get you. Dealing with this stuff is always scary and annoying for me. :D

pedropps2 commented 1 year ago

This saved me a ton of time, thanks guys. Great work!