Skip to content

[objective_c] Framework are different names for multi-arch apps in Flutter #3319

Description

@dcharkes
$ flutter build macos --release
Resolving dependencies in `/Users/dacoharkes/src/dacoharkes/idle_pirate`... 
Downloading packages... 
  meta 1.18.0 (1.18.2 available)
  vector_math 2.2.0 (2.3.0 available)
Got dependencies in `/Users/dacoharkes/src/dacoharkes/idle_pirate`!
2 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
warning: Code asset "package:objective_c/objective_c.dylib" has different framework names for different architectures. Picking "objective_c.framework" and ignoring "objective_c1.framework". This is likely an issue in the package providing the asset. Please report this to the package maintainers and ensure the "build.dart" hook produces consistent filenames.
Project /Users/dacoharkes/src/dacoharkes/idle_pirate/pkgs/idle_pirate built and packaged successfully.
Building macOS application...                                           
✓ Built build/macos/Build/Products/Release/idle_pirate.app (47.9MB)

I believe this doesn't occur in flutter run because it's single architecture, but flutter build macos is x64+arm64.

(If I look at the hooks_runner output.json files none of them is called objective_c1.dylib, so I'm not sure what's going on here.)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions