-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
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.
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)
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

