You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileSystemException:Cannot retrieve length of file, path ='/Volumes/Macintosh/Users/danemackier/Desktop/testsweets-example/build/ios/Debug-iphoneos/Runner.app' (OSError:Is a directory, errno =21)
Flutter Version details
Flutter version details
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale en-ZA)
• Flutter version 2.5.1 at /Users/danemackier/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffb2ecea52 (4 weeks ago), 2021-09-17 15:26:33 -0400
• Engine revision b3af521a05
• Dart version 2.14.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/danemackier/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.61.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.27.0
Additional context
We need to select the .app file because we're building an end-to-end testing tool and need to select the app to load onto the device. So selecting a .app folder is important for deploying the app to the simulator.
The text was updated successfully, but these errors were encountered:
.app files on macOS are actually directories. But, they are treated as
files by the file picker and therefore can only be selected via
'FilePicker.platform.pickFiles()'. When picking .app files,
'createPlatformFile()' tries to get the size of the .app file which
throws an exception because directories don't have an inherent size.
The bug
When using the file picker and I select the file Runner.app it throws the following exception.
And when I use the
getDirectoryPath
function theRunner.app
is not available for selection. So it's impossible to select a .app file at the momentPlatform
Platform OS version
macOS Big Sur Version 11.6
How are you picking?
Details to reproduce the issue
Runner.app
Runner.app
fileError Log
Flutter Version details
Flutter version details
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale en-ZA) • Flutter version 2.5.1 at /Users/danemackier/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ffb2ecea52 (4 weeks ago), 2021-09-17 15:26:33 -0400 • Engine revision b3af521a05 • Dart version 2.14.2[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/danemackier/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.61.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.27.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 11.6 20G165 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.81
Additional context
We need to select the .app file because we're building an end-to-end testing tool and need to select the app to load onto the device. So selecting a .app folder is important for deploying the app to the simulator.
The text was updated successfully, but these errors were encountered: