[Bug] Plumesign, --udid never matches a device

Open
#277 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Under an hour
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

The bug is in get_device_for_id in crates/plume_utils/src/device.rs, where the .find(|d| ...) closure compares d.device_id against the --udid value. Start by checking how the --udid argument reaches that function and what the device struct exposes for its UDID. Done means passing a real UDID selects the matching device, and you confirm that other callers of device_id are not affected by the change.

Written by the indexing model from the issue text.

Description

bug
Report

I realize this is a very niche issue but its relatively easy to fix, Ive experimented with using plumesign from scripts, the GUI is not affected by this bug as far as I can tell though.

Anyway the issue is that --udid compares the udid against device_id not udid inside get_device_for_id. device_id is not the same as udid it's just the number the connection itself gets usually just counting up for each reconnection.

Inside get_device_for_id, the value from --udid is compared against device_id instead of udid, so passing a real udid never finds the device.

I believe the issue is found at line 397 in crates/plume_utils/src/device.rs

.find(|d| d.device_id.to_string() == device_id).

I dont really know how to best fix it but it should be pretty simple to fix depending on the behavior you want.

I apologize if this is the expected behavior I just found it to be odd. Thank you for your time and your amazing project!

Contributor Checks
  • I am willing to attempt to make a pull request to fix this bug
Additional Information
  • Developer mode enabled
  • Using paid developer account
  • I will send an ipa of the app I'm having trouble installing if any
  • I'm willing to provide crash logs or debugging information if needed
Dominant language
Rust
Stars
3.4k
Forks
224
Avg merge
34m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from claration/impactor

All issues in claration/impactor

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.