I am trying to run a legacy code that is working fine with other people & same system configurations but not on my Mac M1 13.5 and xcode 14.3.1

**- Call to undeclared functions
- Declaration must be imported from Module
- Conflicting types**
Solutions that I tried-
Delete xcworkspace, PODS folder & lock file, Derived Data, restarting
pod deintegrate
pod install
pod --repo-update
Run Destinations with Rosetta
FirebaseMessaging is the main culprit here
Sample PodFile
platform :ios, '11.0'
project 'MyProj’, 'ReleaseAppStore' => :release
inhibit_all_warnings!
target 'MyTrarget do
pod 'FirebaseCore'
pod 'FirebaseMessaging'
pod 'FirebaseAnalytics'
pod 'FirebaseMLVision'
pod 'FirebaseMLVisionBarcodeModel'
pod 'FirebaseMLVisionTextModel'
pod 'FirebaseMLVisionFaceModel'
pod 'FirebaseMLVisionAutoML'
end
target ‘MyApp’ do
pod 'FirebaseCore'
pod 'FirebaseAnalytics'
pod 'FirebaseMessaging'
pod 'FirebaseMLVision'
pod 'FirebaseMLVisionBarcodeModel'
pod 'FirebaseMLVisionTextModel'
pod 'FirebaseMLVisionFaceModel'
pod 'FirebaseMLVisionAutoML'
end
target ‘MyAppRest’ do
pod 'FirebaseCore'
pod 'FirebaseMessaging'
pod 'FirebaseAnalytics'
pod 'FirebaseMLVision'
pod 'FirebaseMLVisionBarcodeModel'
pod 'FirebaseMLVisionTextModel'
pod 'FirebaseMLVisionFaceModel'
pod 'FirebaseMLVisionAutoML'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' # update target to project target
if config.name == 'Debug' # update compilation mode to match main project build settings
config.build_settings['SWIFT_COMPILATION_MODE'] = 'singlefile'
else
config.build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule'
end
end
end
end
Credit to the answer the helped me xcode firebase message error OSAtomicCompareAndSwapPtrBarrier
My updated POD file-