GameAnalytics / GA-SDK-GODOT

Official GameAnalytics Godot SDK repository
MIT License
42 stars 8 forks source link

failing to link exported project in xcode for ios platform #15

Closed ssemakin closed 3 years ago

ssemakin commented 3 years ago

Hi! Following the instructions from the docs, recompiled godot ios templates with the 3.3.2-stable version and then trying to build the exported project in xcode but getting this error:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_GameAnalytics", referenced from:
      objc-class-ref in simple-dev.a(GameAnalyticsCpp.iphone.opt.arm64.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I certainly find the modules/gameanalytics/ios/src/GameAnalyticsCpp.iphone.opt.arm64.o file but for some reason it's not linked to the final static template binary for iphones? Am I missing some step?

ssemakin commented 3 years ago

Ok, I've managed to build it finally by doing the drag-and-drop of the GameAnalytics.framework folder to the ios xcode frameworks.

Sorry, was mislead by reading the config.py script with the

env.Append(FRAMEWORKPATH=[
   '#modules/gameanalytics/ios/lib'
])

which I thought does the magic 😃

In case there's some simple instructions on how to automate the Godot ios export to avoid drag-and-drop routine (placing GameAnalytics.framework somehow in misc/dist/ios_xcode?), that would be much appreciated :)