iflyMSC(IFlySpeechConstant.o), building for iOS Simulator, but linking in object file built for iOS,

记录一个奇奇怪怪的错误:

集成讯飞 iflyMSC.framework 后,编译报错 

....iflyMSC(IFlySpeechConstant.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

网上很多解决方案都是设置 Excluded architectures

iflyMSC(IFlySpeechConstant.o), building for iOS Simulator, but linking in object file built for iOS,_第1张图片

 但是并没有解决。。。。

直到看到这篇文章 https://www.jianshu.com/p/0fc2a6402870 

去配置Pods 的 Excluded architectures时,发现 Pods 的 supported platform 是 macos, 改为 iOS 再编译就对了。。。。。

你可能感兴趣的:(iOS,ios,objective-c,xcode)