I'm trying to add Share module in my game for iOS platform. i have this repo for sharing module Godot-Share.
I'm using godot 3.1 and i download latest godot source code from Link.
To implement share module i follow this step to compile custom module.
- Copy share folder to godot/modules folder.
Then i compile for iOS using this Link. I used following command to compile.
scons p=iphone tools=no target=debug arch=arm scons p=iphone tools=no target=debug arch=arm64
In godot/bin i get as result two files :
libgodot.iphone.debug.arm.a
libgodot.iphone.debug.arm64.a
After i used following command to generate *.debug.fat.a file.
lipo -create bin/libgodot.iphone.debug.arm64.a bin/libgodot.iphone.debug.arm.a -output bin/libgodot.iphone.debug.fat.a
as result i get libgodot.iphone.debug.fat.a file in godot/bin folder.
- i replaced libgodot.iphone.debug.fat.a file into godot/misc/dist/ios_xcode folder
i copied ios_xcode folder in documents, rename ios_xcode to iphone, then zip it. i get result file iphone.zip in Document folder.
Then i add iphone.zip file to
Project>Export>Options>Custom Package>Debug
Then Export project.
Error I'm Facing :
Undefined symbols for architecture armv7: "_z_verbose", referenced from: _inflateInit2_ in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflate in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflateEnd in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflateReset in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflate_blocks_reset in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflate_codes_free in FBLogin.a(ftgzip.iphone.debug.arm.o) _inflate_blocks_new in FBLogin.a(ftgzip.iphone.debug.arm.o) ... "_z_error", referenced from: _inflate_codes in FBLogin.a(ftgzip.iphone.debug.arm.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
So my question is : Am i compiling and linking custom module for iOS is right?
How do i solve above issue?