facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.36k stars 955 forks source link

[iOS] ld: symbol(s) not found for architecture arm64 #5266

Open vagnerlandio opened 1 year ago

vagnerlandio commented 1 year ago

🐛 Bug Report

d: warning: Could not find or use auto-linked framework 'CoreAudioTypes'
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FlipperClient", referenced from:
      objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

To Reproduce

  1. Xcode -> Product -> Destination -> Any iOS Device (arm64)
  2. Xcode -> Product -> Archive

Environment

Workaround solution

Exclude react-native-flipper using a react-native.config.js

module.exports = {
  dependencies: {
    'react-native-flipper': {
      platforms: {
        ios: null,
      },
    },
  },
};
Juan2662 commented 10 months ago

Any update on this ?

noelsp commented 9 months ago

Hi, Any update on this?

swizes commented 9 months ago

Usually this happens, when you have multiple configurations like Default ones (Debug, Release) and custom ones like StagingDebug/StagingRelease etc.

You need to define those in the flipper_config too. https://fbflipper.com/docs/getting-started/react-native/

Fix the issue use below pattern of default flipper_config

flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug", "StagingDebug", "StagingRelease", "Release"])

fengtook commented 8 months ago

Please tell me how to solve this problem?

luluhoc commented 1 month ago

Any update?