On my case adding the following line in the iOS .podspec
fix the problem (in the podspec from your iOS Swift library, not from the React Native library):
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
Then re-run pod install
in your react native example app and Clean the Build folder