universal property

bool universal
final

Whether to build a universal (arm64 + x86_64) binary.

When true, passes -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64. Defaults to false (build only the hooks-provided target architecture).

With Flutter Native Assets / code_assets, keep this false: the hooks system invokes the builder once per target architecture and merges the per-architecture dylibs into a universal binary itself. Enabling universal there produces a fat dylib per invocation and breaks the final lipo -create merge.

Implementation

final bool universal;