Xcode 13.3/XCFramework 编译错误:__DATA/__bss 部分的类型为零填充,但架构 arm64 的文件偏移量非零

发布于 2025-01-16 12:50:21 字数 255 浏览 7 评论 0原文

当在 M1 芯片上运行时使用 Xcode 13.3 构建时,我的一个 XCFrameworks 抛出以下错误。

__DATA/__bss 部分的类型为零填充,但适用于架构 arm64,文件偏移量为非零

在 Monterey 上运行的 Xcode 13.2.1 上的同一项目没有错误。在任何 Xcode 或 macOS 版本上运行的英特尔芯片也不会出现错误。

有没有人见过这个问题并知道潜在的解决方案?

One of my XCFrameworks throws the following error when building with Xcode 13.3 on running on the M1 chip.

section __DATA/__bss has type zero-fill but non-zero file offset for architecture arm64

There is no error with the same project on Xcode 13.2.1 running on Monterey. Also no error with Intel chips running on any Xcode or macOS version.

Has anyone seen this issue yet and know of a potential solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静谧幽蓝 2025-01-23 12:50:21

我首先收到此错误是因为我使用了 bogo 的 arm64-to-sim Github 上的工具可以修补我现有的一些框架,以便在 M1 芯片上的模拟器上运行。我更新到了修复此问题的工具的最新版本,并且它得到了解决。修复在这里: https://github.com/bogo/arm64-to -sim/pull/8

I got this error in the first place because I was using bogo's arm64-to-sim tool on Github to patch some of my existing frameworks to run on a simulator on an M1 chip. I updated to the latest version of the tool that fixes this issue, and it resolved. The fix is here: https://github.com/bogo/arm64-to-sim/pull/8

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文