Xcode 13.3/XCFramework 编译错误:__DATA/__bss 部分的类型为零填充,但架构 arm64 的文件偏移量非零
当在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我首先收到此错误是因为我使用了 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