flipper icon indicating copy to clipboard operation
flipper copied to clipboard

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

Open vagnerlandio opened this issue 9 months ago • 4 comments

🐛 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

  • react-native: 0.72.6
  • react-native-flipper: 0.212.0

Workaround solution

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

module.exports = {
  dependencies: {
    'react-native-flipper': {
      platforms: {
        ios: null,
      },
    },
  },
};

vagnerlandio avatar Nov 06 '23 11:11 vagnerlandio

Any update on this ?

Juan2662 avatar Jan 03 '24 23:01 Juan2662

Hi, Any update on this?

noelsp avatar Jan 26 '24 15:01 noelsp

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"])

swizes avatar Jan 27 '24 08:01 swizes

Please tell me how to solve this problem?

fengtook avatar Feb 22 '24 11:02 fengtook