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

"NO APPLICATION SELECTED" issue with Flipper #3027

Closed
realtril opened this issue Nov 5, 2021 · 49 comments
Closed

"NO APPLICATION SELECTED" issue with Flipper #3027

realtril opened this issue Nov 5, 2021 · 49 comments

Comments

@realtril
Copy link

realtril commented Nov 5, 2021

I have managed to connect a device ( I see logs and see the tree of React Native elements), but now I have an issue with connecting the app - "NO APPLICATION SELECTED" is what I see. Any ideas to fix it?

Using react native 0.64.2/ tried 0.66.1 as well.

Screen Shot 2021-11-05 at 1 17 48 PM

@mweststrate
Copy link
Contributor

Please do provide some additional information, like the logs (under exclamation mark icon). Are you using a debug build? Please compare your setup with our reference example https://github.com/facebook/flipper/tree/main/react-native/ReactNativeFlipperExample, make sure that Flipper is started as part of the debug build. Does the reference example work correctly?

@mweststrate
Copy link
Contributor

@mweststrate

Please don't ping individuals unless there is a specific reason to do so.

@realtril
Copy link
Author

realtril commented Nov 26, 2021

@mweststrate that's what I got:

in androidmanifest.xml:

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:theme="@style/AppTheme"
      android:usesCleartextTraffic="true"
      android:networkSecurityConfig="@xml/network_security_config"
      >

adb devices

Screen Shot 2021-11-26 at 1 21 31 PM

@mweststrate
Copy link
Contributor

Sorry that is not enough information to be able to act upon. Can you check if the reference example does work correctly? That gives some clarity on where potential problems might be.

@rafirr
Copy link

rafirr commented Dec 6, 2021

@mweststrate i've similar issue, the funny thing is that it worked on friday. I've tried with a new Flipper SDK (0.123.0), but no success. I've connection to device, but no to app.

Flipper logs:
image

Diagnostics screen:
Screenshot_2021-12-06-13-52-51-163_com primateapp

RN: 0.66.3
Flipper SKD: now 0.123.0, previously 0.99.0

@rafirr
Copy link

rafirr commented Dec 6, 2021

@mweststrate nevermind, after restart my computer, it's working :)

@realtril
Copy link
Author

@mweststrate All debugging on Hermes, React DevTools, and logs for device & JS work just fine, including breakpoints. The only problem is I still see "NO APPLICATION SELECTED"

My AndroidManifest.xml in both debug and main contains 'android:name=".MainActivity" and the app itself works fine.

ADB devices lists the device correctly, and this project has been working fine for over 3 years with React Native Debugger so we know most if not all of the setup is correct (due to the expo upgrade, I needed to drop off from react-native debugger and switch to Flipper)

@sparlampe
Copy link

sparlampe commented Dec 26, 2021

I had exactly the same symptoms. Then I discovered that in settings the path of the android SDK was incorrect. It was pointing to /opt/something. I have changed it to myHome/Android/Sdk and everything worked.
OS: Ubuntu
Flipper device: 0.126.0
Flipper desktop: 0.127.0

The mobile application fails to start with Flipper 0.127.0 with the error
SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found
This is the reason for the version mismatch above.

@sabun123
Copy link

sabun123 commented Feb 21, 2022

I'm experiencing the NO APPLICATION SELECTED issue with the latest Flipper and React Native at the time of this writing as well. This is for both iOS and Android, using the simulators/emulators.

image

This poses a problem as I'm unable to use Flipper's plugins for:

  • Redux
  • Network

What does work even with this error:

  • Logs for Device and React Native
  • React DevTools

The version of Flipper we're using is 0.135.0.
The version of React Native we're using is 0.67.2.

I've gone as far back as Flipper version 0.127.0 and no dice. This issue persists.

I'd be happy getting this working just on iOS at least. Our Podfile has the following set for Flipper:

# Enables Flipper.
use_flipper!({'Flipper' => '0.135.0'})

Additional information:

OS: macOS Monterey version 12.2
System: Intel x86 (i5 quad core)
Yarn: 1.22.10
Xcode: 13.2.1
Simulators: iPhone X (iOS 12.4), iPhone 13 Pro Max (iOS 15)
Android Studio: 2020.2.1 Arctic Fox
Emulators: Pixel 2 (Android 10 and 11)
iOS using Hermes: NO
Android using Hermese: YES

Questions

  1. Am I missing something during setup that's possibly not documented currently?
  2. Is Flipper known to work with the latest React Native version for this feature or is it currently untested?

@lblasa
Copy link
Contributor

lblasa commented Feb 21, 2022

Hi @sabun123, sorry to hear you're having issues. I've just tried with:

  • react-native: 0.67.2
  • react-native-flipper: 0.131.1
  • Flipper: 0.135.0

The application appeared on the drop down and got connected, at least on iOS simulator. Can you please try the same on your end? I used the bundled ReactNativeExample app.

@sabun123
Copy link

Hey @lblasa thanks for getting back to me on this.

I've tried the ReactNativeFlipperExample app, and it does work with Flipper correctly.

The major difference between my project and the ReactNativeFlipperExample project appears to be a single dependency:

"react-native-flipper": "^0.131.0"

I added it to the package.json file along with this section from the example app package.json:

  "relativeDependencies": {
    "react-native-flipper": "../react-native-flipper"
  }

Adding this in seems to break the build though:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FlipperClient", referenced from:
      objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


** BUILD FAILED **

These differences don't seem to be in the documentation https://fbflipper.com/docs/getting-started/react-native/ and I can't find it on the Github page either.

Am I on the right path here, and is there a way to overcome that build error?
Or am I completely off the course here?

@lblasa
Copy link
Contributor

lblasa commented Feb 21, 2022

I would:

  • Remove the relativeDependencies. ReactNativeExample is contained within the react-native folder, so is referencing that. So unless your project is within the same directory, then it wouldn't work.
  • Run pod install --repo-update in your project folder.

FlipperClient is defined in Flipper. So it looks like is completely missing.

@sabun123
Copy link

Thanks for pointing that out @lblasa , I did not fully understand what the relativeDependencies piece was doing. I have removed it from the package.json file upon your guidance.

Tried doing a pod install --repo-update however it didn't change the outcome.

What else I've tried

Removed the Pods folder and the Podfile.lock file and tried from scratch:

Installing Flipper (0.135.0)
Installing Flipper-Boost-iOSX (1.76.0.1.11)
Installing Flipper-DoubleConversion (3.1.7)
Installing Flipper-Fmt (7.1.7)
Installing Flipper-Folly (2.6.10)
Installing Flipper-Glog (0.3.9)
Installing Flipper-PeerTalk (0.0.4)
Installing Flipper-RSocket (1.4.3)
Installing FlipperKit (0.135.0)
...
Installing react-native-flipper (0.131.1)

As far as can be seen, looks like cocoapods is installing the dependencies correctly.

Outcome: Still failing at the build stage

Went one step further:

  1. Removed node_modules and re-did yarn install
  2. Removed Pods and Podfile.lock and re-did pod install --repo-update
  3. In Xcode, hit CMD+SHIFT+K to clean out the build folder
  4. In the simulator, delete all previous app versions installed so it's barebones again

Ran the build once more

Outcome: Still failing with

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FlipperClient", referenced from:
      objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

No dice so far, any other ideas to try to get this working?

@stanwrkt
Copy link

Check your AppDelegate.m file, maybe you forgot to add the initialization code there.

@sabun123
Copy link

sabun123 commented Mar 2, 2022

Thanks for the suggestion @stanwrkt. That file should have been pre-filled as linking performs these steps automatically in React Native 0.62 onwards for this library.

Here's my AppDelegate.m file (the imports seem to match one-to-one with the example app).

#import <React/RCTLinkingManager.h>
#import <Firebase.h>
#import "AppDelegate.h"

#import <AppCenterReactNative.h>

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "RNSplashScreen.h"

#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>

static void InitializeFlipper(UIApplication *application) {
  FlipperClient *client = [FlipperClient sharedClient];
  SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
  [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
  [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
  [client addPlugin:[FlipperKitReactPlugin new]];
  [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
  [client start];
}
#endif

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  if ([FIRApp defaultApp] == nil) {
    [FIRApp configure];
  }
  
#ifdef FB_SONARKIT_ENABLED
  InitializeFlipper(application);
#endif

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"myapp"
                                            initialProperties:nil];

  [AppCenterReactNative register];

  if (@available(iOS 13.0, *)) {
      rootView.backgroundColor = [UIColor systemBackgroundColor];
  } else {
      rootView.backgroundColor = [UIColor whiteColor];
  }

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  [RNSplashScreen show];
  return YES;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

// Below is required for Deep Linking
- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  return [RCTLinkingManager application:application openURL:url options:options];
}

// This one is for Universal Links
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
 restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
 return [RCTLinkingManager application:application
                  continueUserActivity:userActivity
                    restorationHandler:restorationHandler];
}

@end

Does anything seem amiss here?

@gax97
Copy link

gax97 commented Mar 3, 2022

I can add that this issue occurs to me on iOS only if I select some build scheme that is different from the "main" scheme.

@hoangnguyen8895
Copy link

Update Android sdk location in Flipper's settings and reload. Hope it helps :D

@gax97
Copy link

gax97 commented Mar 7, 2022

I can add that my issue was resolved after I specified flipper version and build configurations in Podfile like this for example:

use_flipper!({ 'Flipper' => '0.137.0' }, configurations: ['Debug', 'Dev.Debug'])

@sabun123
Copy link

sabun123 commented Mar 8, 2022

@gax97 you are an amazing individual!

This did the trick, would be lovely to have this in the official Flipper setup documentation for those of us in production setups where we support multiple build configurations.

I modified my Podfile to the following (the ... are skipped lines):

flipperkit_version = '0.135.0'

...

project 'myapp',
        'DEV.Debug' => :debug,
        'DEV.Release' => :release, 
        'SIT.Debug' => :debug,
        'SIT.Release' => :release, 
        'UAT.Debug' => :debug,
        'UAT.Release' => :release, 
        'CI.SIT.Debug' => :debug,
        'CI.SIT.Release' => :release,
        'CI.UAT.Debug' => :debug,
        'CI.UAT.Release' => :release,
        'PROD.Debug' => :debug,
        'PROD.Release' => :release
...

  use_flipper!({ 'Flipper' => flipperkit_version, 'Flipper-Folly' => '2.6.10', configurations: ['DEV.Debug', 'SIT.Debug', 'UAT.Debug', 'CI.SIT.Debug', 'CI.UAT.Debug'], 'Flipper-RSocket' => '1.4.3', 'Flipper-DoubleConversion' => '3.1.7', 'Flipper-Glog' => '0.3.9', 'Flipper-PeerTalk' => '0.0.4', 'OpenSSL-Universal' => '1.1.1100' })

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

  end

As can be seen we have a tonne of build configurations setup, and after defining it in use_flipper explicitly, the app gets picked up by Flipper immediately! No more "No Application Selected" issue.

Thanks again @gax97 for sharing your findings.

@aardvarkk
Copy link

aardvarkk commented Mar 14, 2022

I'm on the latest version (v0.138.0) and am unable to get either my app or the ReactNativeFlipperExample Android app to show up properly in Flipper. I'm running Linux, but my colleague on a Mac is having the same problem.

Here's a screenshot of the Flipper interface (I've tried both the distributed Release and also building from source with the same results):

image

ADB logs and so on are showing correctly. But when I try to select React Native as the target for inspection, I get the following:

image

I'm unable to select any plugins like Network because they say I don't have an application selected (but there are none to select).

My Flipper logs show only warnings (no errors):

image

Setup Doctor shows no issues:

image

@jrweinb
Copy link

jrweinb commented Apr 13, 2022

Hello - I am also getting the same issue with Flipper 0.142.0. I can view logs but Flipper is not connecting to my application running on the iOS Simulator. My specs:

MacOS Monterey 12.2
M1 chip
Flipper 0.142.0
React Native 0.66.3
Apollo 3.5.6

I have tried everything I can find through this repo's issues and Stackoverflow but I cannot get Flipper to recognize my application. Any suggestions are much appreciated

@vmechiev
Copy link

Hello! I have the same issue. I did everything that has been described above, but I am still not succeed...

@NomanGul
Copy link

+1 bump

@Vitor-Felix
Copy link

I tried everything above, but it still with the "NO APPLICATION SELECTED" status. It's pretty interesting because it was working just fine, then suddenly, it just couldn't find any app on any device. I love the project and hope it starts to work again someday, as easy as it was.

@plasticard
Copy link

Same issue here. "NO APPLICATION SELECTED" on v0.143.0.

@mweststrate
Copy link
Contributor

Hi folks, there is many different reasons why Flipper might not be able to connect, and with +1 ing we don't know anything more about your situation, nor gives it any signal on what we could potentially improve on our side. There is sadly quite a lot of reasons why things might not connect, like adb crashes, xcode upgrades, mismatching RN and Flipper versions, not using a debug build, etc. Regularly even a reboot can fix issues.
If you need help with Flipper not connecting:

  1. Clone the reference project https://github.com/facebook/flipper/tree/main/react-native/ReactNativeFlipperExample and see if that one corrects correctly
  2. If not, verify doctor, and file an issue
  3. If it connects, compare that projects setup with your own.
  4. If all versions are up to date, and there is a meaningful difference causing a connecting issue, only then open an issue with a small repro and environment info. Before going through those steps, there is usually little meaningful signal we can act on.

For now closing this issue, since there are multiple separate discussions going on, but none from the OP

@karatekid430
Copy link

Oops, in a React Native upgrade I had clobbered the initialisation code in AppDelegate.m, check that you have not done the same. Fixed now.

@andreyboberskiy
Copy link

andreyboberskiy commented Sep 3, 2022

RN 0.69.5. Application detecting works after adding part for React Native 0.67 to AppDelegate.mm. Flipper configuration inside use_react_native: :flipper_configuration => FlipperConfiguration.enabled(["DebugDevelopment","DebugStaging","DebugProduction"], { 'Flipper' => '0.162.0' }),

@Dannark
Copy link

Dannark commented Sep 16, 2022

I got it!
For anyone in the future, I was able to run after fixing 3 erros: (My problem only occurs for iOS and Im using React Native 0.67 solution from the docs even though im on 0.68+)

1º problem was the #if DEBUG that wasnt working even using target Development in xCode for our projet, So I had to follow this instructions to add it

2º problem was the next line #if FB_SONARKIT_ENABLED also didn't work so I had to comment it refer to

3º problem was No such module 'FlipperKit' found then I realized I didn't even had the necessary libs in my project!
I just followed the React Native Manual Setup so I missed the Generic iOS Apps

The docs should be more clear about the FULL instalation process, there are a lot of parts missing here that may confuse us making us believe we are doing right

@sekoyo
Copy link

sekoyo commented Oct 3, 2022

For me I went to Flipper Settings > Android SDK location and changed that to the location of my Android SDK:

Bad:
Screenshot 2022-10-03 at 10 00 57 AM

Good:
Screenshot 2022-10-03 at 10 04 12 AM

@Reactor-Labs
Copy link

Reactor-Labs commented Oct 7, 2022

These are the steps I took to fix the issue

Install and configure idb

$ brew tap facebook/fb
$ brew install idb-companion
$ pip3 install fb-id

Set the Android SDK location in flipper -> settings to /Users/<youruser>/Library/Android/sdk

Set the idb binary location in flipper -> settings to /opt/homebrew/bin/idb

Update my podfile for RN 0.69.0

 use_flipper!({ 'Flipper' => '0.166.0' })

This should match your installed version of flipper, in my case 0.166.0

@Dat-Mobile
Copy link

I was able to solve that on Android

open ReactNativeFlipper.java file

In the first line package com.yourappname; change it to exactly your package name inside AndroidManifest.xml

@badaz
Copy link

badaz commented Nov 9, 2022

I was able to solve that on Android

open ReactNativeFlipper.java file

In the first line package com.yourappname; change it to exactly your package name inside AndroidManifest.xml

This last comm' saved me ! I had replaced the whole file contents during a RN update, forgetting to update the package name at the top of the file, tx

@vikingprank
Copy link

Hello, I was having the "NO APPLICATION SELECTED" issue with flipper and managed to detect my app in flipper after several hours of searching. I'm using Flipper 0.183.0 and in my package.json, 0.183.0 as well. react-native: 0.69.7

  1. I installed the reactnativeflipperexample project on my android phone, and flipper was able to pick it up. Figured the problem was in the config of my project.
  2. I changed the FLIPPER_VERSION variable in android/gradle.properties to the same as the demo project: 0.171.1. This didn't change anything. Ran "cd android/ && ./gradlew" clean to take the changes.
  3. Inside mobile/android/app/build.gradle, I had this line that was not in the demo project: "exclude group:'com.squareup.okhttp3', module:'okhttp'", So I removed it. Still no luck.
  4. In MainApplication.java I had:
    Class aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); But in demo they had: Class aClass = Class.forName("com.reactnativeflipperexample.ReactNativeFlipper");
    So, I changed "facebook" to the name in the AndroidManifest of my project.
  5. Build the project, it appeared in the Flipper interface for the first time.
    Hope this helps!

@sesm
Copy link

sesm commented Mar 13, 2023

I was having "NO APPLICATION SELECTED" issue on iOS with RN 0.71.3.
Turns out, the root cause was that I didn't update AppDelegate.m correctly when upgrading, in the end of didFinishLaunchingWithOptions I had return YES; instead of return [super application:application didFinishLaunchingWithOptions:launchOptions];

@Seunope
Copy link

Seunope commented Jun 23, 2023

The following worked for me.

  1. Set the path to Android SDK correctly
  2. Ensure the watchman is set up
  3. Ensure the Setup Doctor is not flagging any issue

None of the above resolved the issue until I uninstall the app from the device, close the Metro Bundler terminal, and then run yarn android after this Fipper "NO APPLICATION SELECTED" error disappeared.

Desktop FLIPPER_VERSION=0.201.0
React native Android FLIPPER_VERSION=0.125.0

@manosKas
Copy link

@Seunope should i run yarn android (or ios) even though i use npm ?

@Seunope
Copy link

Seunope commented Jul 20, 2023

@Seunope should i run yarn android (or ios) even though i use npm ?

You can use either yarn or npm, it should still work.

@simonsmith
Copy link

Just wanted to add what was needed to fix it for me. This is on 0.72.3:

AppDelegate.swift

import UIKit
+import FlipperKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
+        let client = FlipperClient.shared()
+        let layoutDescriptorMapper = SKDescriptorMapper(defaults: ())
+        client?.add(FlipperKitLayoutPlugin(rootNode: application, with: layoutDescriptorMapper!))
+        client?.add(FKUserDefaultsPlugin(suiteName: nil))
+        client?.add(FlipperKitReactPlugin())
+        client?.add(FlipperKitNetworkPlugin(networkAdapter: SKIOSNetworkAdapter()))
+        client?.start()

        window = UIWindow()
        window?.rootViewController = TabViewController()
        window?.makeKeyAndVisible()
            
        return true
    }
}

@thoth-seshat
Copy link

Hum.. I'm having this problem as well. Expo with filler 0.210.0

@neethanz
Copy link

For me I went to Flipper Settings > Android SDK location and changed that to the location of my Android SDK:

Bad: Screenshot 2022-10-03 at 10 00 57 AM

Good: Screenshot 2022-10-03 at 10 04 12 AM

For me I went to Flipper Settings > Android SDK location and changed that to the location of my Android SDK:

Bad: Screenshot 2022-10-03 at 10 00 57 AM

Good: Screenshot 2022-10-03 at 10 04 12 AM

Thank you , Its worked for me - 18-08-23

@mguellsegarra
Copy link

I was having "NO APPLICATION SELECTED" issue on iOS with RN 0.71.3. Turns out, the root cause was that I didn't update AppDelegate.m correctly when upgrading, in the end of didFinishLaunchingWithOptions I had return YES; instead of return [super application:application didFinishLaunchingWithOptions:launchOptions];

This fixed my error, using React Native 0.71.5 and Flipper 0.218.0

Thank you so much!

@dengcqw
Copy link

dengcqw commented Oct 25, 2023

Thanks for pointing that out @lblasa , I did not fully understand what the relativeDependencies piece was doing. I have removed it from the package.json file upon your guidance.

Tried doing a pod install --repo-update however it didn't change the outcome.

What else I've tried

Removed the Pods folder and the Podfile.lock file and tried from scratch:

Installing Flipper (0.135.0)
Installing Flipper-Boost-iOSX (1.76.0.1.11)
Installing Flipper-DoubleConversion (3.1.7)
Installing Flipper-Fmt (7.1.7)
Installing Flipper-Folly (2.6.10)
Installing Flipper-Glog (0.3.9)
Installing Flipper-PeerTalk (0.0.4)
Installing Flipper-RSocket (1.4.3)
Installing FlipperKit (0.135.0)
...
Installing react-native-flipper (0.131.1)

As far as can be seen, looks like cocoapods is installing the dependencies correctly.

Outcome: Still failing at the build stage

Went one step further:

  1. Removed node_modules and re-did yarn install
  2. Removed Pods and Podfile.lock and re-did pod install --repo-update
  3. In Xcode, hit CMD+SHIFT+K to clean out the build folder
  4. In the simulator, delete all previous app versions installed so it's barebones again

Ran the build once more

Outcome: Still failing with

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FlipperClient", referenced from:
      objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

No dice so far, any other ideas to try to get this working?
read react-native-flipper.podspec, use "export PRODUCTION=1; pod install" for run for release build, "unset PRODUCTION; pod install" for debug build. this is bad develop experience.

@dengcqw
Copy link

dengcqw commented Oct 25, 2023

I'm experiencing the NO APPLICATION SELECTED issue with the latest Flipper and React Native at the time of this writing as well. This is for both iOS and Android, using the simulators/emulators.

image

This poses a problem as I'm unable to use Flipper's plugins for:

  • Redux
  • Network

What does work even with this error:

  • Logs for Device and React Native
  • React DevTools

The version of Flipper we're using is 0.135.0. The version of React Native we're using is 0.67.2.

I've gone as far back as Flipper version 0.127.0 and no dice. This issue persists.

I'd be happy getting this working just on iOS at least. Our Podfile has the following set for Flipper:

# Enables Flipper.
use_flipper!({'Flipper' => '0.135.0'})

Additional information:

OS: macOS Monterey version 12.2 System: Intel x86 (i5 quad core) Yarn: 1.22.10 Xcode: 13.2.1 Simulators: iPhone X (iOS 12.4), iPhone 13 Pro Max (iOS 15) Android Studio: 2020.2.1 Arctic Fox Emulators: Pixel 2 (Android 10 and 11) iOS using Hermes: NO Android using Hermese: YES

Questions

  1. Am I missing something during setup that's possibly not documented currently?
  2. Is Flipper known to work with the latest React Native version for this feature or is it currently untested?

I fix it by create link to /usr/local/bin/idb-companion. because maybe brew link idb-companion to /opt/brew/...
flipper maybe use the fullpath /usr/local/bin/idb-companion

@pavelpashkovsky
Copy link

image

@annewanghy
Copy link

annewanghy commented Nov 29, 2023

my setting is right, and I'm trying to use latest version of flipper 0.239.0, react-native 0.68.

set in Podfile

use_flipper!({ 'Flipper' => '0.239.0' }, configurations: ['Debug', 'Staging'])

I can see it's connect to my app, it can see logs, but it cannot use redux tool. trying many solutions and they all failed, is there anyone has the same problem and fixed it?

image
➜  ios git:(gh37-upgrade-react-native) ✗ whereis idb
idb: /usr/local/bin/idb
image image

@annewanghy
Copy link

thank you @sabun123 you save my day #3027 (comment)

@mununki
Copy link

mununki commented Dec 18, 2023

I was having "NO APPLICATION SELECTED" issue on iOS with RN 0.71.3. Turns out, the root cause was that I didn't update AppDelegate.m correctly when upgrading, in the end of didFinishLaunchingWithOptions I had return YES; instead of return [super application:application didFinishLaunchingWithOptions:launchOptions];

It works for me. Thanks!

@jemmycalak
Copy link

jemmycalak commented Jul 26, 2024

makesure your app in debug mode.

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