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

Failed to find device error on Flipper 0.133.1 #3432

Closed
kbirgoren opened this issue Feb 11, 2022 · 16 comments
Closed

Failed to find device error on Flipper 0.133.1 #3432

kbirgoren opened this issue Feb 11, 2022 · 16 comments
Assignees

Comments

@kbirgoren
Copy link

kbirgoren commented Feb 11, 2022

🐛 Bug Report

As soon as I open the Flipper, I get Connection failed error.

Failed to find device '7F017CFA-5EAB-4285-8AED-77E14A717BCE' while trying to connect app 'MyApp'

Everything works fine on the Android emulator but not in the iOS simulator

To Reproduce

  • Start the iOS simulator
  • Open the Flipper App

Environment

  • macOS Monterey 12.0.1
  • Simulator: iPhone 13 - iOS 15.0
  • Flipper Version: 0.133.1
  • React Native: 0.67.2

Flipper logs

Failed to find device '7F017CFA-5EAB-4285-8AED-77E14A717BCE' while connection app 'MyApp' Error: Timed out waiting for device 7F017CFA-5EAB-4285-8AED-77E14A717BCE for client MyApp
at file:///Applications/Flipper.app/Contents/Resources/app.asar/bundle.js:4209:5711

@aigoncharov
Copy link
Contributor

@kbirgoren could you attach complete Flipper logs (like in this post)?

@kbirgoren
Copy link
Author

@kbirgoren could you attach complete Flipper logs (like in this post)?

image

@aigoncharov here you can find the screenshot of the logs.

@aigoncharov aigoncharov self-assigned this Feb 11, 2022
@essana3
Copy link

essana3 commented Feb 11, 2022

Same here

@aigoncharov
Copy link
Contributor

@kbirgoren @essana3 would you happen to be on M1 Macs by any chance?

@essana3
Copy link

essana3 commented Feb 12, 2022

@kbirgoren @essana3 would you happen to be on M1 Macs by any chance?

Yes

@aigoncharov
Copy link
Contributor

  1. What is your Flipper client version (https://fbflipper.com/docs/getting-started/react-native-ios/#react-native-063)?
  2. Do you see the same error running our Sample app -https://github.com/facebook/flipper#react-native-sdk--sample-app ?

@kbirgoren
Copy link
Author

kbirgoren commented Feb 12, 2022

  1. What is your Flipper client version (https://fbflipper.com/docs/getting-started/react-native-ios/#react-native-063)?
  2. Do you see the same error running our Sample app -https://github.com/facebook/flipper#react-native-sdk--sample-app ?

Hey Andrey,

  • There is no Flipper version specified in my pod file. I use use_flipper!()
  • Unfortunately, I still have the same issue even with the Sample app. You can see the screenshot of the logs below.
  • I don't use M1

It was actually working fine before I upgrade it to the latest version. I tried to revert to the previous version that I use which was 0.129.0 but that did not solve the issue either.

So now, I can still get the console logs from the project but I can't watch the network calls.

image

@nlindroos
Copy link

Fixed a similar issue by upgrading idb-companion from 1.0.14 -> 1.1.6.

This can be done by running

brew update && brew upgrade idb-companion

Found the underlying issue from the console in Flipper, (option + command + i to open console), where the command ~/Library/Python/3.8/bin/idb list-targets --json resulted in an error.

After upgrading idb-companion, the list-targets command succeeds.


@kbirgoren You should specify an exact version of Flipper in your Podfile, e.g. use_flipper!({ 'Flipper'=> '0.135.0' }) if you're using the most current recent version right now.

@kbirgoren
Copy link
Author

@nlindroos Thanks for your message.

I just installed client version 0.99.0 and now everything seems to be working.

Specifying a version in Podfile did not help me either. I also experienced the same issue with Flipper's sample app.

@gmonte
Copy link

gmonte commented Feb 23, 2022

This works for me:

brew update && brew upgrade idb-companion

Fixed a similar issue by upgrading idb-companion from 1.0.14 -> 1.1.6.

This can be done by running

brew update && brew upgrade idb-companion

Found the underlying issue from the console in Flipper, (option + command + i to open console), where the command ~/Library/Python/3.8/bin/idb list-targets --json resulted in an error.

After upgrading idb-companion, the list-targets command succeeds.

@kbirgoren You should specify an exact version of Flipper in your Podfile, e.g. use_flipper!({ 'Flipper'=> '0.135.0' }) if you're using the most current recent version right now.

@essana3
Copy link

essana3 commented Mar 8, 2022

This issue has been fixed in idb-companion 1.1.7.
Make sure to uninstall the old version and install the new one since it supports m1 now.

@kbirgoren
Copy link
Author

I am still facing with the same issue even on Flipper 0.144.0, I can only run it without any issues with Flipper 0.99.0

@jqn
Copy link

jqn commented Apr 14, 2023

Following this doc should be able to help anyone trying to get Flipper working correctly https://fbflipper.com/docs/getting-started/react-native/

@Mainstreamlos
Copy link

I just restarted my smartphone, run the Flipper App again and it works.

@redbluenat
Copy link

redbluenat commented Jun 25, 2023

For this worked M1:

brew tap facebook/fb
brew install idb-companion

@akshayeshenoi
Copy link

Turns out both idb and idb-companion are required.

From facebook/idb:

idb is made up of 2 major components, each of which needs to be installed separately.

idb companion

Each target (simulator/device) will have a companion process attached allowing idb to communicate remotely.

The idb companion can be installed via brew or built from source

brew tap facebook/fb
brew install idb-companion

Note: Instructions on how to install brew can be found here

idb client

A cli tool and python client is provided to interact with idb.

It can be installed via pip:

pip3.6 install fb-idb

Note: The idb client requires python 3.6 or greater to be installed.

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

9 participants