iOS flutter while run to iPhone it had the error - Cannot find type 'PhoneNumberKit' in scope
Problem: While develop the app in flutter and run in iPhone it shows the below error. Launching lib/main.dart on iPhone 16 Plus in debug mode... Xcode build done. 93.6s Failed to build iOS app Swift Compiler Error (Xcode): Cannot find type 'PhoneNumberKit' in scope /Users/mydevice/.pub-cache/ hosted/ pub.dev/libphonenumber_ plugin-0.3.3/ios/Classes/ SwiftLibphonenumberPlugin. swift:6:24 Could not build the application for the simulator. Error launching application on iPhone 16 Plus. Solution: In podfile update the below code. target ' Runner ' do use_frameworks ! use_modular_headers ! # Add This Line pod ' PhoneNumberKit ', ' ~> 3.7 . 6 ' flutter_install_all_ios_pods File .dirname( File .realpath(__ FILE__)) end Then run the command as follows cd ios pod install --repo-update rm -rf ~/Library/Developer/Xcode/ DerivedData rm -rf ~/Library/Developer/Xcode/ DerivedData/ModuleC...