plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

XCode get error: Module 'device_info' not found

Open Slackgate opened this issue 2 years ago • 5 comments

When I try to build my app with XCode, get error: Module 'device_info' not found it's work fine on android in mac I try commands: flutter clean & flutter pub get flutter pub add device_info (show it's already in dependencies) and flutter pub upgrade device_info still get same error

Slackgate avatar Oct 25 '21 17:10 Slackgate

For plus plugins the name is device_info_plus, so you have to:

$ flutter pub add device_info_plus
$ flutter pub get
$ flutter run

alexbatalov avatar Oct 29 '21 18:10 alexbatalov

flutter pub add device_info_plus 

This method doesn't help me solve the same problem.

luokunman avatar Apr 12 '22 09:04 luokunman

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Jun 12 '22 00:06 github-actions[bot]

I am using version 4.0.1 --- Please let me know if you need any other data. My flutter doctor checks out on Macbook Pro 16 intel.

% flutter pub add device_info_plus "device_info_plus" is already in "dependencies". Use "pub upgrade device_info_plus" to upgrade to a later version! pub finished with exit code 65 % flutter pub get Running "flutter pub get" in ... 5.4s % flutter build ios Building com..*** for device (ios-release)... Automatically signing iOS for device deployment using specified development team in Xcode project: **** Running pod install... 4.2s Running Xcode build...
└─Compiling, linking and signing... 8.2s Xcode build done. 61.3s Failed to build iOS app Error output from Xcode build: ↳ 2022-08-02 11:50:52.754 xcodebuild[7518:13621390] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-08-02 11:50:52.754 xcodebuild[7518:13621390] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-08-02 11:50:53.374 xcodebuild[7518:13621408] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from 00008101-00015C123EC0001E was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7f95fe8111c0> Method: -platform Thread: <NSThread: 0x600000fec240>{number = 5, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2022-08-02 11:50:53.530 xcodebuild[7518:13621392] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from 00008101-00015C123EC0001E was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7f95fe8111c0> Method: -platform Thread: <NSThread: 0x600000ffbd00>{number = 3, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2022-08-02 11:50:53.589 xcodebuild[7518:13621392] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from 00008101-00015C123EC0001E was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7f95fe8111c0> Method: -platform Thread: <NSThread: 0x600000ffbd00>{number = 3, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ** BUILD FAILED **

Xcode's output: ↳ Writing result bundle at path: /var/folders/vv/4rjfndt97r5bbbcs8jpqm04r0000gn/T/flutter_tools.15uGmE/flutter_ios_build_temp_dirs3pr5N/temporary_xcresult_bundle

In file included from /Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/MLKVisionImage+FlutterPlugin.m:1:
/Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from /Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.m:1:
/Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from /Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/MLKVisionImage+FlutterPlugin.m:1:
/Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from /Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.m:1:
/Users/****/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
/Users/****/projects/****/production/****/ios/Runner/GeneratedPluginRegistrant.m:18:9: fatal error: module 'device_info_plus' not found
@import device_info_plus;
 ~~~~~~~^~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/****/projects/****/production/****/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions
is 9.0 to 15.5.99. (in target 'FMDB' from project 'Pods')

Result bundle written to path:
    /var/folders/vv/4rjfndt97r5bbbcs8jpqm04r0000gn/T/flutter_tools.15uGmE/flutter_ios_build_temp_dirs3pr5N/temporary_xcresult_bundle

Parse Issue (Xcode): Module 'device_info_plus' not found /Users/****/projects/production//ios/Runner/GeneratedPluginRegistrant.m:17:8

Encountered error while building for device.

GeneratedPluginRegistrant.m

// // Generated file. Do not edit. //

// ignore_for_file: directives_ordering // ignore_for_file: lines_longer_than_80_chars // ignore_for_file: depend_on_referenced_packages

import 'package:camera_web/camera_web.dart'; import 'package:device_info_plus_web/device_info_plus_web.dart'; import 'package:image_picker_for_web/image_picker_for_web.dart'; import 'package:shared_preferences_web/shared_preferences_web.dart'; import 'package:video_player_web/video_player_web.dart';

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs void registerPlugins(Registrar registrar) { CameraPlugin.registerWith(registrar); DeviceInfoPlusPlugin.registerWith(registrar); ImagePickerPlugin.registerWith(registrar); SharedPreferencesPlugin.registerWith(registrar); VideoPlayerPlugin.registerWith(registrar); registrar.registerMessageHandler(); }

JTrembl1 avatar Aug 02 '22 16:08 JTrembl1

Hi, i have the same problem with Xcode 14 Flutter 3.3.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision e3c29ec00c (6 days ago) • 2022-09-14 08:46:55 -0500 Engine • revision a4ff2c53d8 Tools • Dart 2.18.1 • DevTools 2.15.0

And I resovled it by : device_info_plus: 3.2.2

ryuuSeiKai avatar Sep 20 '22 10:09 ryuuSeiKai

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 28 '22 00:12 github-actions[bot]