Skip to content

Xcode build does not strip release builds to arm64 #7908

@cbracken

Description

@cbracken

Flutter.framework is distributed as a fat binary (arm64, x86_64) to allow running on both devices and simulator. This causes App Store validation to fail due to the including of x86_64 code in the final binary.

We should add an additional build phase that strips framework code to the target architecture with lipo, for example to xcodebackend.sh. e.g., http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

Metadata

Metadata

Assignees

Labels

platform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions