简体   繁体   English

Apple Mach-O Linker警告没有任何细节

[英]Apple Mach-O Linker Warning without any details

After updating to Xcode 8.3.2 I got an Apple Mach-O Linker Warning when trying to run on a device (It's working on simulator). 更新到Xcode 8.3.2后,我尝试在设备上运行时获得了Apple Mach-O链接器警告(它正在模拟器上运行)。 But I did not get any details. 但我没有得到任何细节。 Double click on the error does not bring more informations about the linker warning. 双击错误不会带来有关链接器警告的更多信息。 Can anyone help? 有人可以帮忙吗?

在此输入图像描述

Right-click (or control-click) the error message and choose “Reveal in Log”. 右键单击(或按住Control键单击)错误消息,然后选择“在日志中显示”。

透露日志

For this demo, I forced a linker error by manually truncating one of my .o files. 对于此演示,我通过手动截断我的一个.o文件来强制发生链接器错误。 Your error will probably be something else. 你的错误可能是别的。

The first thing to try if you can't tell make sense of the linker error (once you find it in the log) is to do a clean build. 如果您无法分辨链接器错误(一旦在日志中找到它),首先要尝试的是进行干净的构建。 Hold the option key ( ) and choose Product > Clean Build Folder…. 按住选项键( )并选择“产品”>“清理构建文件夹...”。 Then choose Product > Build. 然后选择Product> Build。

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

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