plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Compile]: Module 'device_info_plus' not found

Open plumest opened this issue 4 months ago • 4 comments

I already try #780 and #3485 but it does not work.

Operating System

MacOS 15.6 (Apple M2)

Plugin

device_info_plus

Version

11.5.0

Flutter SDK

3.32.8

Compilation command

fvm flutter run then select iOS simulator (iOS 18.1)

Dart Dependencies

name: <NAME>
description: <DESCRIPTION>
publish_to: 'none'
version: 2.0.0+1

environment:
  sdk: ^3.8.0

dependencies:
  android_id: ^0.4.0
  cached_network_image: ^3.4.0
  cloud_firestore: ^6.0.0
  collection: ^1.19.0
  device_info_plus: ^11.4.0
  dio: ^5.9.0
  dotted_border: ^3.1.0
  easy_localization: ^3.0.7+1
  equatable: ^2.0.7
  firebase_core: ^4.0.0
  firebase_messaging: ^16.0.0
  flutter:
    sdk: flutter
  flutter_bloc: ^9.1.1
  flutter_dotenv: ^5.2.1
  flutter_google_places_sdk: ^0.4.2+1
  flutter_keyboard_visibility: ^6.0.0
  flutter_local_notifications: ^19.2.1
  flutter_localizations:
    sdk: flutter
  flutter_native_splash: ^2.4.4
  flutter_secure_storage: ^9.2.4
  flutter_slidable: ^4.0.0
  flutter_svg: ^2.0.17
  focus_detector: ^2.0.1
  formz: ^0.8.0
  geocoding: ^4.0.0
  geolocator: ^14.0.2
  get_it: ^8.0.3
  google_maps_flutter: ^2.12.3
  hive_ce: ^2.10.1
  hive_ce_flutter: ^2.2.0
  image_cropper: ^9.1.0
  image_picker: ^1.1.2
  injectable: ^2.5.0
  intl: ^0.20.2
  json_annotation: ^4.9.0
  jwt_decoder: ^2.0.1
  latlong2: ^0.9.1
  loader_overlay: ^5.0.0
  logging: ^1.3.0
  package_info_plus: ^8.2.0
  permission_handler: ^12.0.0
  pin_code_fields: ^8.0.1
  pull_to_refresh_flutter3: ^2.0.2
  retrofit: ^4.4.2
  rxdart: ^0.28.0
  share_plus: ^11.0.0
  shimmer: ^3.0.0
  smooth_page_indicator: ^1.2.1
  talker_dio_logger: ^4.6.10
  url_launcher: ^6.3.1
  webview_flutter: ^4.10.0

dev_dependencies:
  build_runner: ^2.4.14
  flutter_gen: ^5.9.0
  flutter_launcher_icons: ^0.14.3
  flutter_lints: ^6.0.0
  flutter_test:
    sdk: flutter
  hive_ce_generator: ^1.8.1
  injectable_generator: ^2.6.2
  json_serializable: ^6.9.0
  retrofit_generator: ^10.0.2
  very_good_analysis: ^9.0.0

flutter:
  generate: true
  uses-material-design: true

Native dependencies

# Uncomment this line to define a global platform for your project
platform :ios, '15.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Compilation Error

Parse Issue (Xcode): Module 'device_info_plus' not found

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.8, on macOS 15.6 24G84 darwin-arm64, locale en-TH)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2025.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2025.2)
[✓] VS Code (version 1.103.1)
[✓] Connected device (2 available)
[✓] Network resources

Checklist before submitting a bug

  • [x] I searched issues in this repository and couldn't find such bug/problem
  • [x] I Google'd a solution and I couldn't find it
  • [x] I searched on StackOverflow for a solution and I couldn't find it
  • [x] I read the README.md file of the plugin
  • [x] I'm using the latest version of the plugin
  • [x] All dependencies are up to date with flutter pub upgrade
  • [x] I did a flutter clean
  • [x] I tried running the example project

plumest avatar Aug 21 '25 10:08 plumest

Are you able to run an example app?

vbuberen avatar Aug 25 '25 12:08 vbuberen

have a same issues.... saw this issues was long time ago didnt have any answer on the net!

cycberwaym1-design avatar Aug 25 '25 13:08 cycberwaym1-design

this issues happen since 2022 or earlier... till now still no solution....

cycberwaym1-design avatar Aug 25 '25 15:08 cycberwaym1-design

Same issue multiple times I think they should close this package

korat2511 avatar Nov 27 '25 03:11 korat2511