skip to Main Content

Building failed with Xcode 13beta for React Native 0.64.2 project. It is on macOS Big Sur. The detail of error is:

Undefined symbols for architecture x86_64:
  "__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
      __swift_FORCE_LOAD_$_swiftFileProvider_$_YogaKit in libYogaKit.a(YGLayoutExtensions.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_YogaKit)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What configuration change is needed to eliminate the error?

3

Answers


  1. Create an empty swift file (####.swift) from Xcode in the main project which located Appdelegate.h file. This worked for my React Native project after Xcode version 13 update.

    Login or Signup to reply.
  2. Try creating a new Swift empty file (it’s not necessary to create a Bridging Header).

    Login or Signup to reply.
  3. Adding libswiftWebKit.tbd into Link Binary With Libraries build phase in XCode helped to solve the problem:

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search