Skip to content

Local engine gen_snapshot path is incorrect, gen_snapshot_arm64 not found #156175

@gaaclarke

Description

@gaaclarke

This is breaking running with a locally built engine in profile.

reproduction steps

flutter --local-engine=ios_profile --local-engine-host=host_profile_arm64 --local-engine-src-path=/Users/aaclarke/dev/engine/src/ run --profile

seen results

Launching lib/main.dart on iPhone (5) in profile mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Automatically signing iOS for device deployment using specified development team in Xcode project: S8QB4VV633
Running Xcode build...                                                  
Xcode build done.                                           21.4s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): Target aot_assembly_profile failed: ProcessException: Failed to find
"/Users/aaclarke/dev/engine/src/out/ios_profile/clang_x64/gen_snapshot_arm64" in the search path.

expected results

I believe the corret path should be /Users/aaclarke/dev/engine/src/out/ios_profile/clang_arm64/gen_snapshot

doctor

[!] Flutter (Channel [user-branch], 3.26.0-1.0.pre.350, on macOS 14.7 23H124 darwin-arm64, locale en)
    ! Flutter version 3.26.0-1.0.pre.350 on channel [user-branch] at /Users/aaclarke/dev/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 59e57437db (61 minutes ago), 2024-10-03 13:09:19 -0700
    • Engine revision de1762dbc5
    • Dart version 3.6.0 (build 3.6.0-316.0.dev)
    • DevTools version 2.40.0-dev.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform
      update checks and upgrades.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.team-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions