简体   繁体   English

如何删除Xcode警告Apple Mach-O链接器警告'指针未对齐地址

[英]How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address

I have a slight issue when build my Xcode project, get tones of warning after update pod. 构建我的Xcode项目时,我有一个小问题,更新pod后会发出警告音。 It looks like this 看起来像这样

在此处输入图片说明

Already search the whole site here but still no luck. 已经在这里搜索整个站点,但是仍然没有运气。 it doesn't affect the project but it is quite annoying. 它不会影响项目,但是很烦人。 Anyone could help? 有人可以帮忙吗?

It probably means their binary file has non-aligned pointer when they compile their code. 这可能意味着它们的二进制文件在编译代码时具有未对齐的指针。 In those cases the alignment basically defaults to 1 byte and hypothetically might impact performance. 在这些情况下,对齐方式基本上默认为1字节,并且可能会影响性能。 After updating to Xcode 8.3 public release I am still seeing this error, so Google might need to compile their static library with different settings to make it go away. 更新到Xcode 8.3公开发布后,我仍然看到此错误,因此Google可能需要使用不同的设置编译其静态库以使其消失。

Got this response from firebase support: 得到了来自firebase支持的以下响应:

This is a known issue with Xcode 8.3 beta, so it might be a beta thing and Xcode being extra verbose. 这是Xcode 8.3 beta的一个已知问题,因此它可能是beta版,而Xcode太冗长了。 It works well though with 8.2.1 so I recommend temporarily use it to avoid the warnings or ignore the warnings on 8.3 beta if it does not affect your app. 尽管它在8.2.1上可以很好地工作,所以我建议暂时使用它来避免警告,或者如果它不影响您的应用,请忽略8.3 beta上的警告。

在Firebase 3.16.0(Firebase Core 3.6 + Firebase Analytics 3.8.0)中已修复此问题。

guys, it is all fixed now. 伙计们,现在都固定了。 Tested it all myself on two projects. 我自己在两个项目上进行了测试。 You got to go to the correct directory of your project so that your pod spec file is visible to your command line commands, run 您必须转到项目的正确目录,以使Pod spec文件对命令行命令可见,然后运行

pod update

and see it all fixed and working properly! 并查看所有修复和正常工作!

这些问题已在3.16.0版中解决,并且可能已修复。

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

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