Getting below error after project being upgraded to react-native 0.73
iOS minimum Development : iOS 13
Showing All Errors Only
/node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:648:34: Definition of 'MPGDPRConsent' must be imported from module 'mParticle_Apple_SDK.Swift' before it is required
package.json
"react": "18.2.0","react-native": "^0.73.0","react-native-mparticle": "^2.7.12",
pod file
platform :ios, '14.0'install! 'cocoapods', :deterministic_uuids => falsetarget 'myApp' do config = use_native_modules! use_modular_headers! pod 'mParticle-Apple-SDK', '~> 8.17' pre_install do |installer| installer.pod_targets.each do |pod| if pod.name == 'mParticle-Apple-SDK' def pod.build_type; Pod::BuildType.new(:linkage => :dynamic, :packaging => :framework) end end end end post_install do |installer| react_native_post_install(installer) # Exclude arm64 architecture for simulators (for Apple Silicon) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end endend