Select to view content in your preferred language

Module 'device_info_plus' not found

77
1
Jump to solution
yesterday
Labels (1)
abufadzly
Emerging Contributor

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

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
abufadzly
Emerging Contributor

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.

View solution in original post

1 Reply
abufadzly
Emerging Contributor

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.