-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
An Android only flutter app that does not have the ios folder crashes the flutter tool on iOS if it uses plugins that supports ios.
Repro steps, on a Mac:
flutter create android_only
cd android_only
rm -rf ios
# Add a dependency on the path_provider plugin:
sed -i.bak '/cupertino_icons/a\
\ path_provider: any' pubspec.yaml
flutter build apk -v
This crashes with:
...
[ +179 ms] Found plugin path_provider at /Users/amirha/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +191 ms] [/private/tmp/android_only/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /private/tmp/android_only/ios/Runner.xcodeproj -target Runner -showBuildSettings
[ +23 ms] "flutter apk" took 1,808ms.
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.