Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcframework issue #72

Open
johndpope opened this issue Sep 4, 2022 · 3 comments
Open

Xcframework issue #72

johndpope opened this issue Sep 4, 2022 · 3 comments

Comments

@johndpope
Copy link

johndpope commented Sep 4, 2022

supabase/supabase-swift#38

At the bottom of this ticket
I’ve successfully exported any cod able along with 6-7 other frameworks but then hit a snag with this library. Are you aware that this actually works with say Bazel uses x frameworks?

UPDATE

https://stackoverflow.com/questions/34159442/x-is-not-a-member-type-of-y


_When using an xcframework that depends on another framework, the X is not a member of type Y will also happen for the Framework it depends on when writing an extensions that wraps, for example, delegate methods

Example: Framework Foo depends on Bar and need to conform to DataDelegate.

class Foo {
    ...
}

extension Foo : Bar.DataDelegate {
    ...
}
Everything during compiling will go as planned and the xcframework will be generated. Once you add it to your App along with the dependancy framework Bar and try to build it you will get DataDelegate is not a member of type Bar._

@wweevv-johndpope
Copy link

build logs

https://gist.github.com/wweevv-johndpope/4fecec0e6b9369ab8220e0becb40fe3f

apple/swift#56573

we can't have
AnyCodable module name + AnyCodable class together - have to rename one or the other.

how bout AnyCodableKit?

@stidch
Copy link

stidch commented Apr 20, 2023

Are there any activity planed for the rename? We're facing the same issue and would appreciate a fix.

@johndpope
Copy link
Author

I think I got around it by importing classes into project....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants