I've isolated the class - and made a complete minimal example using bazel.
git clone https://github.com/wweevv-johndpope/DemoBazel/tree/supabase
./xcodegen app
you may need to enable auto signing of app
Please help - I'm a bit behind on timelines because of this crash.
related - duplicated
https://github.com/binaryscraping/swift-composable-keychain/issues/1
(it seems like because the xcframework is not around - the keychain is deallocated - and not retaining itself?)
I'm not sure the approach using self inside xcframework is doable?
UPDATE
I made this cheatsheet for bazel + XCFRAMEWORKS
there's a way to do xcframeworks via zip + sha - but for now just dumping them into repo works for me.
https://docs.google.com/presentation/d/1ZYwyA_zHjDugt4UH-APJt4qBSt_fbY_286WrgFQvdfA/edit#slide=id.p
related
https://github.com/supabase-community/supabase-swift/issues/38
I don't know why the zombies doesn't work for these xcframeworks... that should stop the deallocation - and allow app to continue...
UPDATE
I made some effort to rewire the classes so that a chunk is instantiate from swift file locally from app.
Good news is - it doesn't crash.
https://github.com/wweevv-johndpope/DemoBazel/tree/gotrue-swift
it's less than ideal - but can live with it for time being.
So there's no supabase.xcframework
and there's no gotrue.xcframework
The BUILD files x2 compile the swift files
https://github.com/wweevv-johndpope/DemoBazel/tree/gotrue-swift/GoTrue
https://github.com/wweevv-johndpope/DemoBazel/tree/gotrue-swift/Thirdparty/Supabase
not the bundle is dirty and there's problem some clean up necessary but it's working locally.
We need to get the classes working within framework.