Skip to content

Cannot Find Main Dyld Shared Cache File on Enterprise if not Downloaded #8337

Description

@WhatTheFuzz

Version and Platform (required):

  • Binary Ninja Version: 5.3.9757 Ultimate (a99f2380)
  • Edition: Binary Ninja Ultimate (1 User)
  • OS: macOS
  • OS Version: 27.0b3
  • CPU Architecture: M5

Bug Description:
When downloading an existing project from a Binary Ninja Enterprise server, that makes use of the built-in dyld shared cache plugin, if a user attempts to open the .bndb before downloading the backing dyld shared cache files, Binary Ninja currently:

  1. Re-opens the prompt for the user to select the backing dyld shared cache file ("Please select the primary shared cache file"). The user must re-select the file. No error or dialog is presented until after this second window is presented.
  2. Reports "Failed to add primary cache file: 'dyld_shared_cache_arm64e'"

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Connect to a Binary Ninja Enterprise server
  2. Create a Binary Ninja Project
  3. Import a dyld shared cache (27.0b3)
  4. Open the primary dyld shared cache file and import any framework
  5. Save the opened + analyzed dyld shared cache file, creating a .bndb
  6. Push the project to the Binary Ninja Enterprise server

On a separate device:

  1. Connect to the Binary Ninja Enterprise server
  2. In the bottom left-hand side of Binary Ninja, open the Remote Dialog, showing all of the existing projects that are on the server.
  3. Confirm that the project created from the previous steps is present
  4. Open the project from the previous steps
  5. Select and open the .bndb created from the previous steps

Expected Behavior:
I would have expected Binja to do any of the following:

  • Not present the window "Please select the primary shared cache file" twice
  • Download the backing dyld shared cache file(s) OR
  • Present a better error message, specifying that the selected file doesn't exist locally and that the user should download it

Screenshots/Video Recording:

Image Image Image

Binary:
N/A

Additional Information:
The issue is resolved by right-clicking on the folder containing the dyld shared cache files and downloading them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions