iOS编译错误#ld: warning: ignoring file# 之 Undefined symbols for architecture x86_64 - ld: symbol(s) not found for architecture x86_64

时间:2021-08-21 23:04:06

ld: warning: ignoring file xxxPath/libbaidumapapi.a, missing required architecture x86_64 in file xxxPath/libbaidumapapi.a (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_BMKMapManager", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_BMKMapView", referenced from:
      objc-class-ref in ZXMapGPSViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我的解决方法:

target->Build Settings, 按如下设置:

iOS编译错误#ld: warning: ignoring file# 之 Undefined symbols for architecture x86_64 - ld: symbol(s) not found for architecture x86_64