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

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

Open
vagnerlandio opened this issue Nov 6, 2023 · 5 comments
Open

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

vagnerlandio opened this issue Nov 6, 2023 · 5 comments

Comments

@vagnerlandio
Copy link

vagnerlandio commented Nov 6, 2023

🐛 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,
      },
    },
  },
};
@Juan2662
Copy link

Juan2662 commented Jan 3, 2024

Any update on this ?

@noelsp
Copy link

noelsp commented Jan 26, 2024

Hi, Any update on this?

@swizes
Copy link

swizes commented Jan 27, 2024

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
Copy link

Please tell me how to solve this problem?

@luluhoc
Copy link

luluhoc commented Oct 2, 2024

Any update?

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

6 participants