Skip to content

Couldn't resolve native function 'DOBJC_initializeApi' in 'package:objective_c/objective_c.dylib' #3281

@alihassan143

Description

@alihassan143

I am encountering an intermittent error related to the objective_c package. The app fails to execute, throwing an error that it cannot resolve the native function DOBJC_initializeApi.

This issue is sporadic and not consistently reproducible. When the error occurs, running flutter clean and rebuilding the project temporarily resolves it. However, the error eventually resurfaces during the development cycle.

Crucially, this is not isolated to local debugging—it is also happening on real devices, including release builds distributed via TestFlight.

It's happening with all plugins using Objective-C, like path_provider_foundation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions