Skip to content
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

Connection failed #103

Open
sanv725 opened this issue Oct 22, 2024 · 5 comments
Open

Connection failed #103

sanv725 opened this issue Oct 22, 2024 · 5 comments

Comments

@sanv725
Copy link

sanv725 commented Oct 22, 2024

Hi, I'm running into the same issue as listed here: #83

I've followed the exact same steps and getting the same errors, on both physical device and simulator. Unfortunately, that issue was closed without revealing how it was fixed, so I can't seem to find a way to resolve it.

I seem to be stuck at this point in the instructions "If everything is set up correctly "Starting ETTrace" will be printed to the console when you launch the app." where I'm not seeing the "Starting ETTrace" in the console logs once I open the app.

Would appreciate any help you can provide on this.

@noahsmartin
Copy link
Member

Hi @sanv725 could you provide the commands you are running? Also the Xcode version, macOS version, simulator/device info and any other setup that might be relevant? Thanks!

@noahsmartin
Copy link
Member

Probably the most common cause of this is the ettrace framework not actually being linked, can you double check and screenshot your Xcode project settings showing it linked to the main app?

@sanv725
Copy link
Author

sanv725 commented Oct 22, 2024

Hi @noahsmartin, here's the steps I've done.

  1. brew install emergetools/homebrew-tap/ettrace to install the runner
  2. https://github.com/EmergeTools/ETTrace Added SPM package from that URL for "main" branch and added the ETTrace package product to the app target
  3. Updated Xcode app launch settings to not launch app automatically
  4. Run ettrace --simulator on terminal
  5. Run the Xcode to build app to simulator
  6. Open app on simulator

iOS Simulator version: 17.5 (iPhone 15 Pro)
Xcode version: 15.4
MacOS version: Sonoma 14.6.1

Screenshot 2024-10-22 at 9 51 11 PM

@noahsmartin
Copy link
Member

Thanks @sanv725 for the details! After you have ettrace --simulator running and have launched the app on the simulator you need to press return in the terminal that launched ettrace, that will start ettrace connecting to the app process. The ettrace command should prompt you to do this. If that's still not working could you also copy/paste the output of running ettrace here? Thank you!

@noahsmartin
Copy link
Member

Also, can you check the general settings of your Xcode project? That screenshot is the "Build Phases" tab. On the general tab ettrace should be "Embed & Sign" otherwise Xcode won't actually include it in your app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants