Skip to content

Build error on iOS after installing react-native-safe-area-context #158

@ElChawich

Description

@ElChawich

Getting this error after installing the library for the first time and trying to build the project on xcode. it worked perfectly on android. I'm using RN 0.59.9

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RNCSafeAreaProvider", referenced from:
      objc-class-ref in libRNCSafeAreaContext.a(RNCSafeAreaView.o)
  "_OBJC_CLASS_$_RNCSafeAreaShadowView", referenced from:
      objc-class-ref in libRNCSafeAreaContext.a(RNCSafeAreaViewManager.o)
  "_OBJC_CLASS_$_RNCSafeAreaViewLocalData", referenced from:
      objc-class-ref in libRNCSafeAreaContext.a(RNCSafeAreaView.o)
  "_UIEdgeInsetsEqualToEdgeInsetsWithThreshold", referenced from:
      -[RNCSafeAreaView invalidateSafeAreaInsets] in libRNCSafeAreaContext.a(RNCSafeAreaView.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions