Apple Mach-O Linker&同上错误 - Xcode 8 [英] Apple Mach-O Linker & Ditto Error - Xcode 8

查看:261
本文介绍了Apple Mach-O Linker&同上错误 - Xcode 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Xcode更新为Xcode 8,现在我正在尝试将项目代码转换为Swift 2.3。我能够使用Xcode 8构建几次而没有任何错误。现在,出现以下错误:

I have just updated my Xcode to Xcode 8 and am now trying to convert my project's code to Swift 2.3. I was able to build a couple times using Xcode 8 without any errors. Now, the following errors came up:


ld:找不到文件:/Users/Linus/Library/Developer/Xcode/DerivedData/MyApp-asdjeshhsetnfxbegcsbcipdreneewgr/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp。 build / Objects-normal / x86_64 / DownloadsViewController.o

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

我甚至不知道 .o 文件是什么。但是, DownloadsViewController 的swift文件就在那里。

I don't even know what a .o file is. The swift file of DownloadsViewController is there, though.


同上:无法获取源的真实路径'/ Users / Linus / Library / Developer / Xcode /DerivedData/MyApp-asdjeshhsetnfxbbciegrfdpdreneewgr/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp-Swift.h'

命令/ usr / bin / ditto失败,退出代码为1

同上,错误发生3次:对于 MyApp。 swiftdoc MyApp.swiftmodule MyApp-Swift.h

The ditto error occurs 3 times: for MyApp.swiftdoc, MyApp.swiftmodule, and MyApp-Swift.h.

提前致谢!

推荐答案

更新



Xcode神奇地决定修复错误本身。我的项目再次运行,没有任何错误。

我没有做任何解决此错误的事情。

UPDATE

Xcode magically decided to fix the errors itself. My project is running again, without any errors.
I didn't do anything that solved this error.

这篇关于Apple Mach-O Linker&同上错误 - Xcode 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆