M1下cocoapods pod insstall编译报错 architecture arm64

m1芯片下pod insstall后项目 编译报错 arm64的错误
Pods/xxxx_iOS/xxxx.framework/xxxx' for architecture arm64

解决方式:
第一步:
TARGETS-> 搜索“architecture”
将Exclude Architetures的value值填写arm64 (Debug/Release都要填写)


WeChat53d42cad639d6b32d4208ae7321ea457.png

第二步:

podfile文件加入一下代码:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end

第三步:
pod install

完美解决

你可能感兴趣的:(M1下cocoapods pod insstall编译报错 architecture arm64)