jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
https://jhugman.github.io/uniffi-bindgen-react-native/
Other
50 stars 5 forks source link

Name mangling breaks for iOS in organization-scoped packages #124

Closed Johennes closed 1 month ago

Johennes commented 1 month ago

In an organization scoped-package such as @unomed/react-native-matrix-sdk, UBRN puts the podspec into ./@unomed/react-native-matrix-sdk.podspec. However, the file actually needs to go into the root folder as unomed-react-native-matrix-sdk.podspec.

Similarly, inside the file, UBRN uses s.name = "@unomed/react-native-matrix-sdk" while it should be s.name = "unomed-react-native-matrix-sdk".

When I move the file, change the name and rebase the paths, everything works fine again.

PS: I also tested Android in an organization-scoped package. Everything appears to work fine out of the box there. 👌