FlutteriOS应用程序不会建立后添加谷歌地图包pubspec. yaml该应用程序建立后删除谷歌地图包(https://pub.dev/packages/google_maps_flutter)请帮助!
错误日志:
在调试模式下启动iPhone8 Plus上的lib/main. dart…
运行pod install…7.2s运行Xcode构建…
Xcode的输出: /Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.32/io s/Class/FlutterPDFView. m:25:5:警告:'FLTPDFViewController'仅在iOS11.0或更高版本上可用[-WunGuard ded-abiceation-new]FLTPDFViewController*pdfviewController=[[FLTPDFViewController alloc]initServFrame:frame ^~~~~~~~~~~~~~~~~~~~ 在 /Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.32/io s/Class/FlutterPDFView.m:4: /Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.32/io s/Class/FlutterPDFView.h:11:12:注意:'FLTPDFViewController'已被标记为在iOS11.0中引入,但部署目标iOS9.0.0@接口FLTPDFViewController:NSObject
无法为模拟器生成应用程序。在iPhone8 Plus上启动应用程序时出错。
这是我的pubspec. yaml:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
image_cropper: ^1.2.3
table_calendar: ^2.2.3
substring_highlight: ^0.1.2
intl: ^0.16.1
shared_preferences: ^0.5.4+5
image_picker: ^0.6.7
mime_type: ^0.3.2
flutter_pdfview: ^1.0.0+10
path_provider: ^1.6.5
pdf_flutter: ^1.1.2
http: ^0.12.0+4
multi_image_picker: ^4.6.9
outline_material_icons: ^0.1.1
fading_edge_scrollview: ^1.1.4
sticky_headers: ^0.1.8+1
flutter_tindercard: ^0.1.9
google_maps_flutter: ^0.5.30
我在我的应用程序上添加了google_maps_flutter:^0.5.30,但在iOS上运行应用程序时没有遇到任何问题。我建议运行flutter清理以清除构建缓存并尝试再次运行应用程序。如果仍然存在问题,请运行flutter医生
以检查任何错误或警告。