khairul169 / gdsqlite-native

SQLite module for Godot 3.x
MIT License
219 stars 41 forks source link

Exporting Godot to ios with khairul169 addon #37

Open danielkotzer opened 5 years ago

danielkotzer commented 5 years ago

Hi, I exported my Godot project to iOS, got an Xcode project, copied it to my Mac, and double clicked the xcodeproj file, it opened in xcode, I selected a team, cleaned selected destination > generic ios, and clicked build, but I keep getting this error: Apple mach-o linker (ld) error "_godot_gdnative_init", referenced from: Linker commannd failed with exit code 1 (use -v to see invocation)

Then I took out of my project the khairul169 add-on (the beta binary files I downloaded here) and used .json file instead sqlit .db file, then I cleaned and rebuild my xcode project and it worked, so clearly there is a compatibility problem with this add-on on iOS.

TGRCdev commented 5 years ago

GDNative's C++ bindings currently do not support compiling for iOS. I could look into this, but my own OSX / iOS resources are limited.

piiertho commented 5 years ago

Hi ! Currently I got a crash on linking on iOS as soon as I have a gdnative in it, since 3.1.1. IOS was working in 3.1. An issue has been opened on main godot repo. But this should be able to link the gdnative_init method, problem I saw was on gargc and gargv from AppDelegate. AppDelegate seems to be in xcode project but compiler does not succeed to link some symbols in it. I had to manually add the gdnative libraries in xcode, can you check those libraries are well imported ? I'd be interested in knowing if you can reproduce the same bug I have :)