Skip to content

"Сontains disallowed nested bundles" and "Contains disallowed file 'Frameworks'" Flutter with IOS share extension when deploy to TestFlight #142531

@Sgooll

Description

@Sgooll

Type of Request

bug

Infrastructure Environment

TestFlight

What is happening?

I'm implementing the "Share" widget in a Flutter application using this guide (https://docs.flutter.dev/platform-integration/ios/app-extensions). To achieve this, it's necessary to embed the Flutter framework (Flutter.xcframework from extension_safe directory) into the extension.

Снимок экрана 2024-01-30 в 19 00 03

I have no build issues, but when I try to submit to TestFlight, I encounter the following errors.

Asset validation failed Invalid Bundle. The bundle at 'Runner.app/Plugins/ share_extension.appex' contains disallowed nested bundles. (ID: 25eb4da5-3868-40ab-bb64-d83b73d238c)

Asset validation failed Invalid Bundle. The bundle at 'Runner.app/Plugins/share_extension.appex' contains disallowed file 'Frameworks'. (ID: e94a1815-1314-48f6-9b45-b6917b1fe627)

telegram-cloud-photo-size-2-5316621067055387349-x

The only thing that allowed deployment was setting the framework to "Do not embed" but this option is not suitable because it causes the share widget to stop appearing.

Steps to reproduce

Step 1: Add Target to project "Share Extension"

Step 2: Add project and extension to the same App Group

Step 3: Drag and drop the Flutter.xcframework file (From <path_to_flutter_sdk>/bin/cache/artifacts/engine/ios-release/extension_safe/Flutter.xcframework) into your share extension’s frameworks and libraries list

Step 4: Open the Flutter app project settings in Xcode to share build configurations. For each of these configurations, make sure the value in the Based on configuration file drop-down menu for your extension matches the one selected for the normal app target.

Step 5: Archive project

Stap 6: Try upload it to TestFlight

Expected results

App uploaded to TestFlight and flutter will be shown in the "Share" widget

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions