简体   繁体   English

Apple Mach-O链接器警告,在xcode上

[英]Apple Mach-O Linker Warning, on xcode

When ever I try to push my app to my ipad or ipod to test them I get this error... 每当我尝试将我的应用程序推送到ipad或ipod进行测试时,都会出现此错误...

alignment lost in merging tentative definition _resultbuffer. 合并临时定义_resultbuffer时丢失对齐方式。

What is it? 它是什么? Any idea how to fix it? 知道如何解决吗?

I'm going to take a wild guess here, apologies if I'm too far off the mark: 我将在这里进行一个疯狂的猜测,如果我离得太远了,我深表歉意:

On the ARM processor alignment can be an issue, particularly if you're accessing a variables in an unaligned manner, I suspect this is what you're seeing: 关于ARM处理器对齐可能是个问题,特别是如果您以未对齐的方式访问变量时,我怀疑这是您所看到的:

Here's a couple links that might see you through this: 这是几个链接,可能会帮助您完成此操作:

Most flavors of ARM will automatically 'fix' this by adjusting the alignment on the fly, however this is configurable. 大多数ARM版本都会通过动态调整对齐方式自动“修复”此问题,但这是可配置的。 The down-side is it causes a CPU interrupt to handle it, so if you're doing this over and over it'll slow things down. 不利的一面是它会导致CPU中断来处理它,因此,如果一遍又一遍地执行此操作,则会使速度变慢。 I haven't run into this on iOS, so I can't say for sure what the behavior would be. 我还没有在iOS上遇到过这个问题,所以我不能肯定会是什么情况。 Odds are its best just to fix it. 修复它是最好的办法。

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

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