M1 XCode build error: Demo(x86_64) Framework not found

image.png

需要更新 workspace 中每个项目的 build settings ,专门为x86_64架构构建iOS模拟器来修复此 bug。
来自 Pod 的项目需要通过 Podfile 的 post_install 更新:

post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
        config.build_settings["ARCHS[sdk=iphonesimulator*]"] = "x86_64"
    end
end

这只更新Pods项目本身。如果任何目标/子项目覆盖了架构,你可能需要使用 installer.generated_pod_targetsinstaller.pod_target_subprojects

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容