Skip to content

[MacOS] App crash on launch "Failed to load dynamic library 'code_forge.framework/code_forge'' when calling "await RustLib.init();" #94

Description

@RetroAndDev

Hi !

I have an issue with the package in version 10.9.0 where my Mac cannot find the code_forge.framework when initializing "RustLib" with await RustLib.init(); :

ArgumentError (Invalid argument(s): Failed to load dynamic library 'code_forge.framework/code_forge': dlopen(code_forge.framework/code_forge, 0x0001): tried: 'code_forge.framework/code_forge' (no such file), '/System/Volumes/Preboot/Cryptexes/OScode_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/noctis_operating_system.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/./code_forge.framework/code_forge' (no such file), '/usr/local/lib/./code_forge.framework/code_forge' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/./code_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/noctis_operating_system.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../code_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/noctis_operating_system.app/Contents/MacOS/code_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/noctis_operating_system.app/Contents/MacOS/code_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/PackageFrameworks/code_forge.framework/code_forge' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/PackageFrameworks/code_forge.framework/code_forge' (no such file), '/Users/arthur/Projets/LimitsDontOverfl0wGame/LimitsDontOverfl0w/noctis_operating_system/build/macos/Build/Products/Debug/noctis_operating_system.app/Contents/Frameworks/code_forge.framework/code_forge' (no such file), '/usr/lib/code_forge.framework/code_forge' (no such file, not in dyld cache), 'code_forge.framework/code_forge' (no such file))

More infos
Flutter 3.44.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 058e0af2c2 (10 days ago) • 2026-07-23 10:56:21 -0700
Engine • hash 13ffd72b2f9a5ca4db2a74ea52d5353ec2e8f939 (revision 0cd610717b) (9 days ago) • 2026-07-23 16:11:34.000Z
Tools • Dart 3.12.2 • DevTools 2.57.0

macOS 26.6 - MacBook Pro M5 Pro - Xcode 27 Beta 4 - macOS SDK 27 Beta
(I have rustup installed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions