Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56

Undefined Symbol: _swift_FORCE_LOAD$_swiftCompatibility56 When Building Flutter iOS App with CocoaPods Development

I am encountering an error when trying to build my Flutter iOS app for the simulator using CocoaPods. The build fails with the following error message:

Error (Xcode): Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56 Could not build the application for the simulator. Despite following the recommended steps to resolve this issue, the error persists.

Environment Flutter Version: 3.22.2 Xcode Version: 14.2.0 CocoaPods Version: 1.11.2 iOS Deployment Target: 15.0 Swift Version: 5.0 Steps Taken to Resolve the Issue: Updated iOS Deployment Target to 15.0: Modified Podfile to set platform :ios, '15.0'. Updated Xcode project settings to set iOS Deployment Target to 15.0. Cleaned and Reinstalled Dependencies: Ran flutter clean. Deleted Pods and Podfile.lock. Ran pod install. Verified Compatibility of Dependencies: Checked all dependencies to ensure they are compatible with Swift 5 and iOS 15.0. Modified Build Settings in Xcode: Ensured Swift Language Version is set to 5.0. Added $(inherited) to Framework Search Paths and Other Linker Flags. Despite these steps, the issue persists. Any help or suggestions would be greatly appreciated.

Error Logs: Error (Xcode): Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56 Could not build the application for the simulator. Thank you for your assistance!

Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56
 
 
Q