iOS 17.4报错: libopencore-amrnb.a[arm64]
iOS 17.4 模拟器运行报错
Building for ‘iOS-simulator’, but linking in object file (/XXX/lib/libopencore-amrnb.a[arm64]2) built for ‘iOS’
解决方案
在Podfile里添加如下设置:config.build_settings[“EXCLUDED_ARCHS[sdk=iphonesimulator*]”] = “arm64”
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end