最近xcode升级到15以后编译flutter旧项目发现有些库编译不过去,出现一下错误
Error (Xcode): Building for 'iOS-simulator', but linking in object file (/Users/xxx/example/ios/Pods/OneKit/OneKit/BaseKit/Decorator/Vendor/libEncryptor.a[arm64][2](libBDEncryptor-iOS.a-arm64-master.o)) built for 'iOS'
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
尝试修复了半天,通过以下方法可以结局
1、Build Settings中的Build Active Architecture Only设置位Yes
2、下面的 Exclude Architectures 下面Any SDK增加arm64
重新编译运行,一切正常 大功告成
评论区