-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select App error #91
Comments
Yeah... I figured out why it is doing that... but it will be some work to fix it... Modified the code a bit to insert some additional logging during the ssh_operations.rb.
It will give you output like this in the log... the app.rb file defines this path inside this block of code:
The issue is iOS 10.x does not use the file LastLaunchServicesMap.plist anymore. They are using a database for the list of installed applications. /User/Library/FrontBoard/applicationState.db So basically a sql query will need to take place to grab the appropriate information idb is requesting... Wonder if anyone has time to work through this... Anyways... hope this points someone in the correct direction... |
thanks for getting this far. Will look into this. |
this should be fixed in the latest version. Are you still having issues? |
App listing works now, but idb crashes when I select an App.
|
Are you able to share which app causes this? If its a free one I would install and test it. |
Thanks a lot @dmayer |
DB Navigator, but it crashes on any App I tried. Edit: Still crashes
recv failed: Resource temporarily unavailable [] Retrieving list of applications... [DEBUG] 2017-09-15 09:17:08 :: idb :: App Dir: /private/var/containers/Bundle/Application/19D9CEF2-751F-4DBF-906B-D6A9D61FF387 [DEBUG] 2017-09-15 09:17:08 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/19D9CEF2-751F-4DBF-906B-D6A9D61FF387/app/Info.plist [INFO] 2017-09-15 09:17:08 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/19D9CEF2-751F-4DBF-906B-D6A9D61FF387/TestFlight.app/Info.plist [INFO] 2017-09-15 09:17:08 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:08 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:08 :: idb :: App Dir: /private/var/containers/Bundle/Application/1CB775A3-EA0C-49E4-9F95-169B8D2B212D [DEBUG] 2017-09-15 09:17:08 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/1CB775A3-EA0C-49E4-9F95-169B8D2B212D/app/Info.plist [INFO] 2017-09-15 09:17:08 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/1CB775A3-EA0C-49E4-9F95-169B8D2B212D/Game Pack.app/Info.plist [INFO] 2017-09-15 09:17:09 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:09 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:09 :: idb :: App Dir: /private/var/containers/Bundle/Application/23C80050-DB21-48EE-9CC7-7EB19F23F9E2 [DEBUG] 2017-09-15 09:17:09 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/23C80050-DB21-48EE-9CC7-7EB19F23F9E2/app/Info.plist [INFO] 2017-09-15 09:17:09 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/23C80050-DB21-48EE-9CC7-7EB19F23F9E2/SuperMarioRunStickers.app/Info.plist [INFO] 2017-09-15 09:17:09 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:09 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:09 :: idb :: App Dir: /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07 [DEBUG] 2017-09-15 09:17:09 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07/app/Info.plist [INFO] 2017-09-15 09:17:10 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07/DB Navigator.app/Info.plist [INFO] 2017-09-15 09:17:10 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:10 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:10 :: idb :: App Dir: /private/var/containers/Bundle/Application/BF155203-0B74-437C-AB8B-B24F9120C8E9 [DEBUG] 2017-09-15 09:17:10 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/BF155203-0B74-437C-AB8B-B24F9120C8E9/app/Info.plist [INFO] 2017-09-15 09:17:10 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/BF155203-0B74-437C-AB8B-B24F9120C8E9/Doctor Strange.app/Info.plist [INFO] 2017-09-15 09:17:10 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:11 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:11 :: idb :: App Dir: /private/var/containers/Bundle/Application/D9315781-2145-459C-9743-5CA13BF8370E [DEBUG] 2017-09-15 09:17:11 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/D9315781-2145-459C-9743-5CA13BF8370E/app/Info.plist [INFO] 2017-09-15 09:17:11 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/D9315781-2145-459C-9743-5CA13BF8370E/.app/Info.plist [INFO] 2017-09-15 09:17:11 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:11 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:11 :: idb :: App Dir: /private/var/containers/Bundle/Application/DB62CBCC-861B-46CB-8228-1612A8095A11 [DEBUG] 2017-09-15 09:17:11 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/DB62CBCC-861B-46CB-8228-1612A8095A11/app/Info.plist [INFO] 2017-09-15 09:17:11 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/DB62CBCC-861B-46CB-8228-1612A8095A11/Wordswipe.app/Info.plist [INFO] 2017-09-15 09:17:11 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:12 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:12 :: idb :: App Dir: /private/var/containers/Bundle/Application/EC513734-3493-4087-8B0F-0A21E2D665E0 [DEBUG] 2017-09-15 09:17:12 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/EC513734-3493-4087-8B0F-0A21E2D665E0/app/Info.plist [INFO] 2017-09-15 09:17:12 :: idb :: Info.plist found at /private/var/containers/Bundle/Application/EC513734-3493-4087-8B0F-0A21E2D665E0/*.app/Info.plist [INFO] 2017-09-15 09:17:12 :: idb :: Parsing plist file.. [DEBUG] 2017-09-15 09:17:12 :: idb :: Data Dir: [DEBUG] 2017-09-15 09:17:16 :: idb :: Appending extension to AppIcon60x60 [DEBUG] 2017-09-15 09:17:16 :: idb :: Now: AppIcon60x60.png [DEBUG] 2017-09-15 09:17:16 :: idb :: Executing blocking SSH command: ls /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07/app/AppIcon60x60.png [INFO] 2017-09-15 09:17:16 :: idb :: Icon found at /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07/DB Navigator.app/[email protected] [INFO] 2017-09-15 09:17:17 :: idb :: Locating application binary... [DEBUG] 2017-09-15 09:17:18 :: idb :: File not found: Net::SFTP::StatusException (2, "no such file") [DEBUG] 2017-09-15 09:17:18 :: idb :: File not found: Net::SFTP::StatusException (2, "no such file") [DEBUG] 2017-09-15 09:17:18 :: idb :: Executing blocking SSH command: /usr/bin/ldid -e /private/var/containers/Bundle/Application/407F8323-1A6E-4456-BC4D-2112204E2E07//DB Navigator.app/DB Navigator /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:82:in from_string': Unknown plist format for string: ./minimal/mapping.h(54): _assert(false); errno=2 (RuntimeError) ./minimal/mapping.h(54): _assert(false); errno=2 ./minimal/mapping.h(54): _assert(false); errno=2 from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:280:in block in parse_opts'from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:277:in each' from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:277:in parse_opts'from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:53:in initialize' from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r.rb:20:in new'from /var/lib/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r.rb:20:in new' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/lib/ios10_application_state_db_wrapper.rb:28:in entitlements_by_binary'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/lib/app.rb:300:in entitlements' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/default_protection_class_group_widget.rb:23:in update'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/plist_file_widget.rb:52:in setup' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/local_storage_tab_widget.rb:25:in setup'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/main_tab_widget.rb:95:in enableLocalStorage' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/main_tab_widget.rb:159:in app_changed'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/idb.rb:122:in block in init_ui' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:2470:in invoke'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/global_app_details_group_box.rb:61:in qt_metacall' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/global_app_details_group_box.rb:61:in app_changed'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/global_app_details_group_box.rb:61:in block (2 levels) in initialize' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:2470:in invoke'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/app_list_dialog.rb:16:in qt_metacall' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/app_list_dialog.rb:16:in method_missing'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/app_list_dialog.rb:16:in block in initialize' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:2470:in invoke'from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:917:in qt_metacall' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:917:in method_missing'from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:917:in exec' from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/gui/global_app_details_group_box.rb:63:in block in initialize'from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:2470:in invoke' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:479:in qt_metacall'from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:479:in method_missing' from /var/lib/gems/2.3.0/gems/qtbindings-4.8.6.3/lib/Qt/qtruby4.rb:479:in exec'from /var/lib/gems/2.3.0/gems/idb-2.10.1/lib/idb.rb:278:in run' from /var/lib/gems/2.3.0/gems/idb-2.10.1/bin/idb:4:in <top (required)>'from /usr/local/bin/idb:22:in load' from /usr/local/bin/idb:22:in 'recv failed: Resource temporarily unavailable` |
I have same problem on app select. Thats my log
|
I found a workaround for the app crashing issue. You have to do the following steps:
WARNING: This will drop the support for iOS 10! |
Thanks for the workaround, however I need idb working on iOS 10. ;) |
After some researchs, I found the root cause of crash in iOS 10. I use an The error comes from the value of
On my iPhone, the You could test the following command to find an application
The solution is to test the others I hope it will help. |
oh, I think they changed the directories of where apps are stored in iOS > 10. Could this be the issue? |
No, it is not the issue. When you select an application in the list, IDB need to get 2 directories :
As mentionned previously, before IOS 10 all these information was in IDB is compatible with IOS 10 and get correctly In my case, the SQL request in the code return nothing for the
By adapting the request, in my case (or by coding in hard the correct data_dir value), IDB don't crash and perfectly works with my phone in IOS 10. I don't know if it is due to the architecture (32bit vs 64bit) of my phone |
Ah. So helpful! Thanks @jtof-fap ! I grepped "data_dir" to see if I could hard-code it like you did, but I got a few diff files. Did you hard code the "data_dir" value in "app_details_group_box.rb" or a different file? It would be clutch if I got this working for my current test. Also, I'm on a 5s with iOS version 10.1.1 and IDB is on my 64-bit Linux host. Is my rig different enough from yours to help fix the problem? I'd love to collaborate to see if we can fix this for everyone. |
oh nvm. I guess I should read higher up.... I've got the filename. Let me know if my version(s) would be any help nailing this down. |
Had you try to set : Except for testing, hardcoding |
Awesome! Using your fix in /lib/lib/ios10_application_state_db_wrapper.rb I got it working (changed the 2 to a 1). Maybe i'll dust off the GIT manual and submit a fix that checks if results are empty, if so, try switching 2 to 1. Gotta finish this iOS test first tho... Thanks for the help! |
I don't submit a fix because I think kvs.key=2 (set by default) seems to be work on certain phones and setting permanently to 1 will probably break the compatibility with these phones... Maybe that the kvs.key values in database vary between phones and by using name (compatibilityInfo) instead of kvs.key values it would fix the problem for everybody. I don't have other phones in order to test. |
Changing the kvs.key to 1 didn't work for me. ruby 2.4.2 |
Thanks for your return. Try the fork of zk-ncc : 038413e |
Tried the fork with the code change, still crashing with recv failed: resource temporarily unavailable Tried with Lloyds Bank and EdgeVis Mobile, both free apps on the store. |
I'm honestly not sure if IDB will be supported for much longer, since the response time and the support in general is awful.. |
I've got Needle and Objection. |
Shame this thread seems to have died with no update. idb was a very good tool for quick sanity checking with easily read output |
@bensh maybe look into passionfruit. https://github.com/chaitin/passionfruit |
iOS 10.2,Get the app list an error as follows
Error downloading file.
/usr/local/lib/ruby/gems/2.3.0/gems/plist4r-1.2.2/lib/plist4r/plist.rb:294:in `open': No filename specified (RuntimeError)
The text was updated successfully, but these errors were encountered: