Posts

Showing posts from 2025

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...

Flutter iOS - Permission all requested in flutter but not the default os alert shown while try to request permission

 Problem: Flutter iOS - Permission all requested in flutter but not the default os alert shown while try to request permission. In flutter request action called but alert not came. Solution: You have to add the below in your pod file and run it will works fine. post_install do | installer | installer. pods_project . targets . each do | target | flutter_additional_ios_build_ settings (target) target. build_configurations . ea ch do | config | # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0' config. build_settings [ 'GCC_ PREPROCESSOR_DEFINITIONS' ] ||= [ '$(inherited)' , ## dart: PermissionGroup.calendar 'PERMISSION_EVENTS=1' , ## dart: PermissionGroup.reminders 'PERMISSION_REMINDERS=1' , ## dart: PermissionGroup.calender 'PERMISSION_CALENDER=1' , ## dart: PermissionGroup.contacts 'PERMISSION_CONTACTS=1' , ...