Skip to content

iOS build failed on release scheme only: Undefined symbols for architecture x86_64 #73

Description

@TrustyTechSG

Hi there, Im facing the below build error on react-native: 0.71.2 and react-native-keyevent: 0.3.0, it only happens on release build, anyone have idea where goes wrong? Im running the build on M1 Macbook.

ld: warning: dylib (/Users/xxxx/Library/Developer/Xcode/DerivedData/project-dwjssovoriuvqiadfnpgjmnfqhms/Build/Products/Release-iphonesimulator/Yoga/yoga.framework/yoga) was built for newer iOS Simulator version (12.4) than being linked (11.0)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RCTEventEmitter", referenced from:
      _OBJC_CLASS_$_RNKeyEvent in RNKeyEvent.o
  "_OBJC_METACLASS_$_RCTEventEmitter", referenced from:
      _OBJC_METACLASS_$_RNKeyEvent in RNKeyEvent.o
  "_RCTRegisterModule", referenced from:
      +[RNKeyEvent load] in RNKeyEvent.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions