herumi / bls-go-binary

22 stars 22 forks source link

Unable to use library in IOS #7

Closed moldis closed 1 year ago

moldis commented 2 years ago

image

herumi commented 2 years ago

Please make a library at yourself. see https://github.com/herumi/bls-go-binary#how-to-build-the-static-binary

make ios
moldis commented 2 years ago

I am using it differently. From my go library, I reference bls-go-binary package. them I am trying to build with gomobile -target:ios

building with make ios just giving me binary without header file, so I can't use it anyway without go code

herumi commented 2 years ago

building with make ios just giving me binary without header file, so I can't use it anyway without go code

Header files for cgo to use this library are in bls/include. What message shows by make ios?

moldis commented 2 years ago

Header file - I mean IOS/Mac bridge header, without it, generated .a is useless and can't be used in IOS/Mac. As I said make ios I am able to generate binary, but if I import bls-go-binary package into go code and then build library with gomobile target -ios (to generate xcframework) I am getting the error above.

herumi commented 2 years ago

What CPU, OS, and Xcode do you use? And could you show me the Go code? I don't know xcframewok, is there configuration to search libbls384_256.a?