简体   繁体   English

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

[英]Apple Mach-O Linker Warning, in xcode 9.4

I update xcode version 9.4 to 10.2.1, I have created a project on xcode 9.4, run it once on xcode 10.2.1 and then delete this version and switch back to xcode 9.4 due to some reasons ... when I tried to run project on xcode 9.4 it gives lot of warnings and 198 errors 我将xcode 9.4版本更新为10.2.1,我在xcode 9.4上创建了一个项目,在xcode 10.2.1上运行了一次,然后由于某些原因删除了该版本并切换回了xcode 9.4。 xcode 9.4上的项目,它给出了很多警告和198错误

在此处输入图片说明

how to solve this issue. 如何解决这个问题。

If it's only linker errors, try to clear derived data on Xcode (Which you can access from Xcode > Preferences > Locations) and run application after clean and build. 如果只是链接器错误,请尝试清除Xcode上的派生数据(您可以从Xcode>首选项>位置进行访问),并在清理和构建后运行应用程序。 Some times your lesser disk spay might caused to these kind of issues as well. 有时,较少的磁盘空余情况也可能导致此类问题。

When you opened the project on XCode 10.2.1 did you allow the project to be updated to the "recommended settings"? 在XCode 10.2.1上打开项目时,是否允许将项目更新为“推荐设置”?

It would have appeared as the yellow yield icon in the issues log. 它将在问题日志中显示为黄色产量图标。

A possible solution is to go into Time Machine (hopefully you keep backups) and revert your project folder to a copy from before you updated XCode 一种可能的解决方案是进入Time Machine(希望您保留备份)并将项目文件夹还原为更新XCode之前的副本

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

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