Skip to content

flutter build ios-framework --xcframework incorrectly copies Flutter.framework.dSYM into App.xcframework #157359

@jmagman

Description

@jmagman

Add-to-app xcframework generation in release mode produces App.xcframework/ios-arm64/dSYMs/Flutter.framework.dSYM and Flutter.xcframework/ios-arm64/dSYMs/Flutter.framework.dSYM. App.xcframework should not contain this dSYM.

This causes the IPA error:

error: Multiple commands produce '......./BuildProductsPath/Release-iphoneos/Flutter.framework.dSYM/Contents'

Steps to Reproduce

Checkout https://github.com/flutter/samples

$ cd add_to_app/prebuilt_module/flutter_module
$ flutter build ios-framework --xcframework --output=../ios_using_prebuilt_module/Flutter --no-debug --no-profile

Observe ios_using_prebuilt_module/Flutter/Release/App.xcframework/ios-arm64/dSYMs/Flutter.framework.dSYM and ios_using_prebuilt_module/Flutter/Release/Flutter.xcframework/ios-arm64/dSYMs/Flutter.framework.dSYM.

The workaround is to delete App.xcframework/ios-arm64/dSYMs/Flutter.framework.dSYM.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowcustomer: castawayteam-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