Hello,
I code my app using Flutter on Windows. Now I want to test my app on iOS & transfered the code to a macbook. When I try to run, I get an error "Module 'device_info_plus' not found". I am not using device_info_plus package directly but I noticed that the arcgis_maps package by Esri has that package in its dependencies.
Any idea why and how to resolve the error?
Thank you
Solved! Go to Solution.
I solved it by running the following:
# Clean the project flutter clean # Remove iOS build folder rm -rf ios/Pods rm -rf ios/.symlinks rm -rf ios/Flutter/Flutter.framework rm -rf ios/Flutter/Flutter.podspec # Reinstall dependencies flutter pub get # Rebuild for iOS cd ios pod install --repo-update cd .. flutter build ios
Need to run 'flutter build ios' for flutter to update the podfile. Thank you deepseek.
I solved it by running the following:
# Clean the project flutter clean # Remove iOS build folder rm -rf ios/Pods rm -rf ios/.symlinks rm -rf ios/Flutter/Flutter.framework rm -rf ios/Flutter/Flutter.podspec # Reinstall dependencies flutter pub get # Rebuild for iOS cd ios pod install --repo-update cd .. flutter build ios
Need to run 'flutter build ios' for flutter to update the podfile. Thank you deepseek.