iOS 的 Flutter 构建失败-对于地图视图(适用于 android)
Flutter BUILD FAILED for iOS-for Map View(works for android)
当我 运行 flutter run
命令出现这个错误。
我正在尝试使用 map_view
。
我的Xcode版本是9.2
在
包含的文件中
/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.m:1:
/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
#import
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.
也许您需要 flutter pub upgrade
以确保您拥有最新的依赖项。
我在尝试包含音频播放器包时遇到了类似的问题
audioplayer-0.4.0/ios/Classes/AudioplayerPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
我以为我是最新的,但是在我升级了 Flutter 之后删除了 Podfile,Podfile.lock 和我 ios 目录下的 Pods 文件夹项目(和 运行 flutter clean),我终于能够构建并启动到 iOS。参见 https://github.com/flutter/flutter/pull/16273
我正在使用 Xcode 9.3 和 Cocoapods 1.5.0
Flutter升级后显示0.3.1版本
当我 运行 flutter run
命令出现这个错误。
我正在尝试使用 map_view
。
我的Xcode版本是9.2
在
包含的文件中/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.m:1: /Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found #import
1 error generated. Could not build the application for the simulator. Error launching application on iPhone X.
也许您需要 flutter pub upgrade
以确保您拥有最新的依赖项。
我在尝试包含音频播放器包时遇到了类似的问题
audioplayer-0.4.0/ios/Classes/AudioplayerPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
我以为我是最新的,但是在我升级了 Flutter 之后删除了 Podfile,Podfile.lock 和我 ios 目录下的 Pods 文件夹项目(和 运行 flutter clean),我终于能够构建并启动到 iOS。参见 https://github.com/flutter/flutter/pull/16273
我正在使用 Xcode 9.3 和 Cocoapods 1.5.0 Flutter升级后显示0.3.1版本