In /Users/fly/Project/Pods/YYKit/Vendor/WebP.framework/WebP(anim_decode.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/fly/Project/Pods/YYKit/Vendor/WebP.framework/WebP' for architecture arm64
这是我当时编译模拟器时报的错
1、在 Build Settings 里面先设置EXCLUDED_ARCHS,设置Any iOS Simulator SDK = arm64。
2、在 User-Defind 下面添加EXLUDED_ARCHS,设置arm64
3、在 Podfile 文件中添加一下代码文章来源:https://www.toymoban.com/news/detail-762950.html
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end
end
重新 pod installer文章来源地址https://www.toymoban.com/news/detail-762950.html
到了这里,关于M2 Mac Xcode编译报错 ‘***.framework/‘ for architecture arm64的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!