RN macos big Xcode 13 链接出错 Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider

束雅达
2023-12-01

版本

RN 0.63 

xcode 13

MAC big sur

错误/;

解决方法:在 主工程目录添加个空的swift文件(####.swift) 

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)
 类似资料: