-
Notifications
You must be signed in to change notification settings - Fork 964
idb command for pulling app.csr fails #2871
Comments
I suspect your idb / idb_companion is outdated. Which version is reported if you run cc @passy |
Well my idb-companion/idb version is 1.1.5. I even tried with source builds of idb and still the same error. Thanks. |
Something did recently change here, so it could have been introduced by D30541778 / 89d7e17 |
I think you're right, because it's exactly what's happening. The fix you mentioned, specifies that the destination file name is omitted (app.csr) and it's exactly what I was adding to fix the problem. |
@passy would you mind taking a closer look at this in time? |
Thanks for the detailed notes! That seems like a pretty clear cut bug. I'll take a look next week. |
@passy seems there is some more background linked here: D27590885. |
Yeah so all you got to do is append /app.csr to the end of the command in the file iOSContainerUtility.tsx on line 203 (just like I pointed out in the image in the bug report). You can find the file by downloading the source code of Flipper 0.113.0, unzip, then the path of the file is desktop/app/src/server/devices/iOS/iOSContainerUtility.tsx. And then you build from source. Hope it helps! |
Indeed reverting to version |
Apologies for the delays on this. It's been a few busy weeks. Sadly this week doesn't look much better but if nobody else has a chance to look into this, I should be able to pick this up early next week. |
Thanks, had same issue, none of newer versions worked on real iOS device, but downgrading to |
There have been a bunch of changes to the logic in the recent release as part of @mweststrate's server code refactorings. Could you please check if this still applies? |
Hi @passy, I just installed the latest version 0.117.0 and it seems that the problem was solved. Thanks! |
Amazing! Sorry for the delay and thanks @mweststrate for fixing this. :) |
@passy I am also using the latest versions (flipper: 0.117.0 and idb: 1.1.5) and the issue still appears to be present. Appending app.csr to the aforementioned line in iOSContainerUtility.tsx still fixes the issue. I ran into an additional issue with a fresh build from source where there was no directory flipper/desktop/plugins/fb. When I created the fb directory, it worked again. I saw you just closed this, but I do believe there are still issues present. |
I also have this error. Downgrading Flipper doesn't fix it (the change is old, and I also can't determine my IDB version, but I had to install it under Rosetta homebrew (facebook/idb#649) Update: building from source eventually fixed it. I don't think I'd installed protobuf correctly. |
Fixed in 9975aa9 |
guys, this is related to idb python client, use pip3.9 install fb-idb, and remove any previous installed version that you have. |
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug Report
It seems that there's an issues with the certificate pull from the device.
To Reproduce
Flipper uses this command to pull the file:
idb --log DEBUG file pull --udid (device id) --bundle-id (com.xxxxx.xxxxx) 'Library/Application Support /sonar/app.csr' 'destination folder'.
If I use the same command in terminal, the command does not work and fails.
But if use the same command and add a backslash ( \ ) at the end of the Application like below, the file gets copied to the destination folder. Aka the certificate gets copied and there are no IDB errors.
idb --log DEBUG file pull --udid (device id) --bundle-id (com.xxxxx.xxxxx) 'Library/Application\ Support /sonar/app.csr' 'destination folder'.
UPDATE 3 hours later
It seems that the backslash works but only in the terminal, so forget about that.
So I investigated some more and built Flipper from source an found out that the problem is that in the file iOSContainerUtility.tsx, function pull, the idb command it's incomplete. I manually added {dst}/app.csr at the end of the command, built again and the certificate error disappeared. I attached a screenshot of the modification.
Thanks for reviewing it!
Environment
Mac OS Big Sur 11.6
Iphone X iOS 14.8
Flipper 0.109.0
React Native 0.65.1
The text was updated successfully, but these errors were encountered: