Start with a react-native app (not ejected Expo)
Build and run
Linker error:
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftCore'
ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'
Undefined symbols for architecture arm64:
Please provide detailed steps for reproducing the issue.
yarn addreact-native linkThe fix is to add a single empty swift file to your main app. This will trigger Xcode to link in Swift and create a bridging header.
We should update the README to include this simple step
Oh my, I'm sorry, the README already says that and I skimmed over it. So sorry!
(feels embarrased)
Following this solution worked for me
Dropping for people facing same issue and looking for solution
https://stackoverflow.com/a/56187043/9241085
@myckhel That solution worked for me as well. Thanks!
@paddlefish The fix you suggested worked when I experience the issue integrating opentok-react-native
Most helpful comment
Following this solution worked for me
Dropping for people facing same issue and looking for solution
https://stackoverflow.com/a/56187043/9241085