question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppInspector doesn't run after install

See original GitHub issue

Describe the bug Attempted an install of AppInspector on a Macbook Pro 16 M1, Monterey 12.1. The install seemed to go smoothly, but I get the following error when I attempt to run it: A fatal error occurred. The required library libhostfxr.dylib could not be found.

To Reproduce Steps to reproduce the behavior:

  1. brew install dotnet
  2. dotnet tool install --global Microsoft.CST.ApplicationInspector.CLI
  3. appinspector

Expected behavior Appinspector should run; I assume it’ll give me the help?

Operating Environment (please complete the following information):

  • Application Inspector Version: Unknown - whatever dotnet is installing.
  • OS: Mac OS 12.1
  • .Net: 6.0.104

Additional context Full error is here:

A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/branca/.dotnet/tools/.store/microsoft.cst.applicationinspector.cli/1.4.29/microsoft.cst.applicationinspector.cli/1.4.29/tools/net6.0/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet].

The .NET runtime can be found at:
  - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=arm64&rid=osx.12-arm64&apphost_version=6.0.4

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fcbrandoncommented, Jun 4, 2022

Good call - that worked. Seems like brew install of dotnet doesn’t work great for this.

To clarify what I did, here’s the steps:

  1. dotnet tool uninstall --global Microsoft.CST.ApplicationInspector.CLI
  2. dotnet tool install --global Microsoft.CST.ApplicationInspector.CLI --version 1.5.5-beta
  3. https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=arm64&rid=osx.12-arm64&apphost_version=6.0.4
  4. https://go.microsoft.com/fwlink/?linkid=2063366

Fwiw, I uninstalled the beta, then went back and installed the main distro, and that seems to have worked fine:

~ % appinspector
ApplicationInspector.CLI 1.4.29+a697529398
© Microsoft Corporation. All rights reserved.

ERROR(S):
  No verb selected.

  analyze        Inspect source directory/file/compressed file (.tgz|zip) against defined characteristics

...

Thanks for the help Gabe - can’t wait to get back to playing with this! 👍

1reaction
gfscommented, Jun 4, 2022

For a specific version specify with the --version argument.

For example: dotnet tool install --global Microsoft.CST.ApplicationInspector.CLI --version 1.5.5-beta

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android studio database inspector does not show any ...
I am on Android studio 4.1 beta 1 . I installed my app on my device and opened Database Inspector and nothing shows...
Read more >
Database inspector stopped working : IDEA-293107 - YouTrack
run the application with Run 'app' => the Run tool window disappears, I have to re-open it manually each time the app is...
Read more >
Debug your database with the Database Inspector
Open the Database Inspector​​ To open a database in the Database Inspector, do the following: Run your app on an emulator or connected...
Read more >
Installing and updating the application
If the application does not start, it is most likely due to outdated components causing conflicts. Try to go into the system settings,...
Read more >
App crash when trying to use Database Inspector [154871161]
My app suddenly crashed after a while with unsuccessful attempts to open access to databases on both device and emulator, this has occured...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found