简体   繁体   English

使用 Xcode 11.2 向 My Mac 构建 iOS 框架报告错误

[英]Build iOS framework towards My Mac with Xcode 11.2 report errors

I upgrade my xcode recently.我最近升级了我的 xcode。 When I build my iOS frameworks towards My Mac, most of them works fine.当我为我的 Mac 构建我的 iOS 框架时,它们中的大多数都可以正常工作。 However one framework build failed.然而,一个框架构建失败了。 The error as follow:错误如下:

My Mac doesn't support any of XXX.framework's architectures.我的 Mac 不支持任何 XXX.framework 架构。 You can add My Mac's x86_64h architecture to XXX.framework's Architectures build setting.您可以将 My Mac 的 x86_64h 架构添加到 XXX.framework 的 Architectures 构建设置。

I have tried add x86_64h, x86_64, and arm64e to valid architecture, but it doesn't work.我曾尝试将 x86_64h、x86_64 和 arm64e 添加到有效架构,但它不起作用。

I also tried to compare build settings between these frameworks, but failed to find out an solution.我还尝试比较这些框架之间的构建设置,但未能找到解决方案。

Any suggestion to solve this problem?有什么建议可以解决这个问题吗?

I had the same issue, then I changed Valid Architectures to arm64 x86_64 .我遇到了同样的问题,然后我将Valid Architectures更改为arm64 x86_64 After this, I was able to build the framework and use it.在此之后,我能够构建框架并使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM