我使用Android Studio在MacBook上创建了Flutter项目。该应用程序可以在Android手机以及连接到Mac的iPhone上正常运行,但是在尝试为Apple生成上传文件时,它会在GeneratedPluginRegistrant.m文件中显示引用的错误
//// Generated file. Do not edit.//
#import "GeneratedPluginRegistrant.h"
#if __has_include (<geolocator / GeolocatorPlugin.h>)
#import <geolocator / GeolocatorPlugin.h>
#else
@import geolocator;
#endif
#if __has_include (<google_maps_flutter / FLTGoogleMapsPlugin.h>)
#import <google_maps_flutter / FLTGoogleMapsPlugin.h>
#else
@import google_maps_flutter;
#endif
错误:@import geolocator:找不到模块'geolocator'
我注意到,如果您删除了包含此调用的部分代码,该错误将通过并显示在下一次导入中,这意味着每个人都会遇到错误。
有人可以帮忙吗?