When releasing my library as a binary target, consumers encounter errors related to unresolved FFI types. Specifically, the type FFIEndpoint cannot be found in scope. However, when building and using the bindings locally, everything works as expected.
When releasing my library as a binary target, consumers encounter errors related to unresolved FFI types. Specifically, the type FFIEndpoint cannot be found in scope. However, when building and using the bindings locally, everything works as expected.
Error in the swift framework consuming binary target:
Cannot find type 'FFIEndpoint' in scope
Expected behaviour: I can depend on GH hosted xcframework not only local package.
Script for building the package:
and for GH releases I zip it, compute checksum and upload the xcframework
Type Definition in lib.rs: