Skip to content

Conversation

@gabrieldonadel
Copy link

Summary:

In react-native-macos 0.81, running pod install will error out due to react-native modules/components duplication when using react-native and react-native-macos in the same repository.

image

Test Plan:

Pod install should succeed and the app should build normally.

@gabrieldonadel gabrieldonadel requested a review from a team as a code owner January 22, 2026 02:36
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/fix-codegen branch 2 times, most recently from bc2a342 to 3c7a020 Compare January 22, 2026 11:02
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/fix-codegen branch from 3c7a020 to d0f2866 Compare January 22, 2026 11:10
@tido64
Copy link
Member

tido64 commented Jan 22, 2026

@Saadnajmi Do we need to generate code for iOS? Can we just change line 205 to "macos"?

"name": "FBReactNativeSpec",
"type": "all",
"ios": {
"modules": {
"AccessibilityManager": {

@Saadnajmi
Copy link
Collaborator

@Saadnajmi Do we need to generate code for iOS? Can we just change line 205 to "macos"?

"name": "FBReactNativeSpec",
"type": "all",
"ios": {
"modules": {
"AccessibilityManager": {

A lot of code assumes the "ios" directory so that will probably end up being a large change, maybe a follow up. I can try testing if it's simple, otherwise I prefer this fix now and that as a follow up.

@Saadnajmi
Copy link
Collaborator

@Saadnajmi Do we need to generate code for iOS? Can we just change line 205 to "macos"?

"name": "FBReactNativeSpec",
"type": "all",
"ios": {
"modules": {
"AccessibilityManager": {

A lot of code assumes the "ios" directory so that will probably end up being a large change, maybe a follow up. I can try testing if it's simple, otherwise I prefer this fix now and that as a follow up.

Also given that codegen is all platform agnostic c++ mostly, I'd rather it be "apple". I think tvOS and visionOS are reusing "ios" too

@tido64
Copy link
Member

tido64 commented Jan 22, 2026

I'm actually wondering if codegen already generated them for react-native. If that's the case, react-native-macos don't need to codegen anything.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pod install fails on 0.81 "Some components or modules are declared in more than one libraries"

3 participants