facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.54k stars 437 forks source link

idb file tool connect to device's root folder,not relative bundle folder #659

Open ma125125t opened 3 years ago

ma125125t commented 3 years ago

Description

Try to ls,pull or push file within device,but always transfrom from or to device's root path,not bundle path,even with a --bundle-id param.

Reproduction

excute db file ls --bundle-id com.facebook.flipper /

result:

Downloads
Books
Photos
var
desktop
Recordings
Library
1
Radio
sonar
DCIM
general_storage
iTunes_Control
MediaAnalysis
PhotoData
PublicStaging
Purchases
AirFair

Additional Information

iqqmuT commented 3 years ago

It looks like --bundle-id option has no effect in this command. All these commands return the same output:

Additional Information

iqqmuT commented 3 years ago

When building idb from the current master branch, it works ok. So the real issue is that we don't get the latest version by brew & pip installs.

iqqmuT commented 3 years ago

I tested the new release version 1.1.2 but oddly it has this same issue. All these commands return still the same output:

ma125125t commented 3 years ago

@iqqmuT The same issue.Do you have a way to start the idb_companion with the binary instead of launching it within Xcode?

iqqmuT commented 3 years ago

@FFFang Unfortunately I haven't figured it out.

ma125125t commented 3 years ago

@iqqmuT OK.Still thank you for the workaround.

maxime-memtell commented 3 years ago

@FFFang @iqqmuT you guys should take a look at https://github.com/facebook/idb/issues/671 if you haven't Also I think I explain how to launch from binary in my last comment there, TLDR; archive the build and distribute as built products then copy/paste to /urs/local/bin, do not forget to add frameworks to your /usr/local/Frameworks folder

I do have different outputs for the commands you guys listed. However I still have the flipper certificate issue https://github.com/facebook/flipper/issues/2113

EDIT: Solved my certificate issue, was related to another fix I tried to apply and forgot to clean. Now if I idb connect first, then I'm good with flipper

iqqmuT commented 3 years ago

This issue seems to be fixed in the release version 1.1.3.

hlspablo commented 2 years ago

@iqqmuT, can you help me? i facing this problem, I already builded idb_companion from source, updated idb python client, and im using 0.125.0 version, the idb file command always returns the same response ignoring bundle-id

iqqmuT commented 2 years ago

@hlspablo

hlspablo commented 2 years ago

@iqqmuT Thanks for your time, the problem was pip cache that was installing an outdated version, and I had to change the idb path on Flipper since I used pip3.9. this pip caching behavior is very weird, since it doest warn about new versions.