Open mrbrentkelly opened 2 days ago
Thanks for reporting the issue, @mrbrentkelly.
I'll try to work on this asap. 0.76.2 is planned for tomorrow, so it's unlikely that the fix would be out. I'll make my best to have it out for 0.76.3.
Meanwhile, you should be able to unblock yourself by manually removing the lines from Xcode.
Description
When a third party react-native dependency exists in an app's package.json but has been disabled from auto-linking in the
react-native.config.js
file, react-native-codegen still generates native Objective-C code for the unlinked dependency, leading to build failures.Steps to reproduce
Create a new RN project and add a third party library that contains native code (e.g.
react-native-screens
)Create a
react-native.config.js
file and disablereact-native-screens
from auto-linking on iOS...Run pod install and try and build/run the iOS app
Build will fail because the generated
RCTThirdPartyFabricComponentsProvider
files reference things that are linked in the project (e.g._RNSScreenCls
).React Native Version
0.76.1
Affected Platforms
Runtime - iOS
Areas
Codegen
Output of
npx react-native info
Reproducer
https://github.com/mrbrentkelly/rn-codegen-linking-bug
Screenshots and Videos
No response