Repository navigation
Closed
flutter/packages
#13302Closed
Copy link
Labels
p: file_selectorThe file_selector pluginThe file_selector pluginplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform team
Description
Testing failed:
'allowedFileTypes' was deprecated in macOS 12.0: Use -allowedContentTypes instead
'allowedFileTypes' was deprecated in macOS 12.0: Use -allowedContentTypes instead
@__swiftmacro_11RunnerTests0022RunnerTestsswift_tiAIefMX260_4_6expectfMf_.swift:1:38: error: 'allowedFileTypes' was deprecated in macOS 12.0: Use -allowedContentTypes instead
Testing.__checkBinaryOperation(panel.allowedFileTypes,{ $0 == $1() },["txt", "json", "public.text", "public.image"],expression: .__fromBinaryOperation(.__fromSyntaxNode("panel.allowedFileTypes"),"==",.__fromSyntaxNode(#"["txt", "json", "public.text", "public.image"]"#)),comments: [.__line("// On the legacy path, the allowedFileTypes should be set directly.")],isRequired: false,sourceLocation: Testing.SourceLocation.__here()).__expected()
^
/Volumes/Work/s/w/ir/x/w/packages/packages/file_selector/file_selector_macos/example/macos/RunnerTests/RunnerTests.swift:261:5: note: in expansion of macro 'expect' here
#expect(panel.allowedFileTypes == ["txt", "json", "public.text", "public.image"])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Work/s/w/ir/x/w/packages/packages/file_selector/file_selector_macos/example/macos/RunnerTests/RunnerTests.swift:261:5: note: in expansion of macro 'expect' here
#expect(panel.allowedFileTypes == ["txt", "json", "public.text", "public.image"])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Work/s/w/ir/x/w/packages/packages/file_selector/file_selector_macos/example/macos/RunnerTests/RunnerTests.swift:261:19: error: 'allowedFileTypes' was deprecated in macOS 12.0: Use -allowedContentTypes instead
#expect(panel.allowedFileTypes == ["txt", "json", "public.text", "public.image"])
Note this isn't currently being caught in CI due to #194517
Metadata
Metadata
Assignees
Labels
p: file_selectorThe file_selector pluginThe file_selector pluginplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform team
Activity
[file_selector_macos] Drop deprecated allowedFileTypes code path (flu…
github-actions commentedon Nov 2, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.