Skip to content

Flutter iOS simulator crash from AppReveal mDNS native dependency #12

@rafiki270

Description

@rafiki270

Summary\nStarting a Flutter app with AppReveal enabled on the iOS simulator crashes immediately after the MCP server starts.\n\n## Platform\n- macOS 26.2 25C56 darwin-arm64\n- Xcode 26.3 build 17C529\n- Flutter 3.38.9 stable\n- iOS Simulator: iPhone 17 Pro, iOS 26.2 runtime\n- AppReveal package: local Flutter appreveal 0.8.0\n\n## Exact command\nflutter run -d 400A6DB0-91FF-4406-973C-88F4DE1D0A5A\n\n## Output\n\nflutter: [AppReveal] MCP server started on port 51845\nTarget native_assets required define SdkRoot but it was not provided\n[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Couldn't resolve native function 'DOBJC_initializeApi' in 'package:objective_c/objective_c.dylib' : Failed to load dynamic library 'objective_c.framework/objective_c'\nLost connection to device.\n\n\n## Steps to reproduce\n1. In VoicePOS/POS/voicepos_app, run the app on the iOS simulator with AppReveal enabled in debug mode.\n2. Wait for startup.\n3. AppReveal starts its MCP server, then the process crashes while loading the objective_c native library.\n\n## Notes\nThe resolved dependency path includes AppReveal -> nsd ^2.0.0 -> nsd_ios 1.0.3 -> objective_c 9.2.4. Running the app with AppReveal startup disabled avoids the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions