失败报错

ignoring file /Users/mac_os/Library/Developer/Xcode/DerivedData/Zhouyi-ggruvfckppracpbnbygtwngrtadx/Build/Products/Debug-iphonesimulator/FMDB/libFMDB.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64


Showing Recent Messages
Undefined symbol: _OBJC_CLASS_$_MBProgressHUD


library not found for -lAFNetworking

主要原因是新版本模拟器使用的是x86_64(building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64 ),而有一些三方框架比较老还需要arm64

解决方案

Build Sttings下面

Excluded Architectures 加上arm64
 

如果还继续失败还报错且,报错的是pod 引入三方,那继续改Pod下面Build Settings 里同样的字段 Excluded Architectures 加上arm64

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注