i386 架构元数据格式错误 - LLVM 错误

发布于 2024-12-21 17:50:39 字数 823 浏览 1 评论 0原文

在我的一个项目中,我从编译器中收到了一个极其令人沮丧的错误。在更改了一些编译器设置以进行优化之后,一切都运行良好,直到我尝试在模拟器上进行测试。我收到此错误:

ld: in /Users/eric/Library/Developer/Xcode/DerivedData/My_Awesome_App-
hcpskretrcpxnuctkkvwptohgmib/Build/Intermediates/My_Awesome_App.build/Debug-
iphonesimulator/My_Awesome_App.build/Objects-normal/i386/main.o, could not parse object 
file /Users/eric/Library/Developer/Xcode/DerivedData/My_Awesome_App-
hcpskretrcpxnuctkkvwptohgmib/Build/Intermediates/My_Awesome_App.build/Debug-
iphonesimulator/My_Awesome_App.build/Objects-normal/i386/main.o: Malformed metadata record 
for architecture i386

我尽我所能重置了编译器设置,但错误仍然存​​在。我尝试了 架构 i386 的格式错误的元数据记录中的建议,但仍然没有任何结果。我还能做些什么吗?喜欢将 Xcode/LLVM-GCC 重置为默认值吗?

I am getting an extremely frustrating error from the compiler in one of my projects. After changing a few compiler settings for optimization, things were working beautifully, until I tried to test on the simulator. I get this error:

ld: in /Users/eric/Library/Developer/Xcode/DerivedData/My_Awesome_App-
hcpskretrcpxnuctkkvwptohgmib/Build/Intermediates/My_Awesome_App.build/Debug-
iphonesimulator/My_Awesome_App.build/Objects-normal/i386/main.o, could not parse object 
file /Users/eric/Library/Developer/Xcode/DerivedData/My_Awesome_App-
hcpskretrcpxnuctkkvwptohgmib/Build/Intermediates/My_Awesome_App.build/Debug-
iphonesimulator/My_Awesome_App.build/Objects-normal/i386/main.o: Malformed metadata record 
for architecture i386

I reset the compiler settings as best as I could, but still the error persists. I tried the suggestions in Malformed metadata record for architecture i386 but still nothing. Any other things I can do? Like reset Xcode/LLVM-GCC to defaults?

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

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

发布评论

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

评论(1

热鲨 2024-12-28 17:50:39

找到了 - 我将该项目的构建设置与两天前在外部硬盘上备份的同一项目的设置进行了比较,罪魁祸首是Link-Time Optimization标志,它被设置为是。将其设置为 NO 解决了该问题。定期备份的另一个原因!

Found it- I compared the project's build settings to the settings of the same project in a backup I had on an external HD from just two days ago, and the culprit was the Link-Time Optimization flag, which was set to yes. Setting it to NO fixed the problem. Another reason to keep regular backups!

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