【发布时间】:2012-12-25 21:17:11
【问题描述】:
我正在 Xcode 中开发一个应用程序。
当我尝试构建时,出现此错误:
ld: in /Users/theodore/Library/Developer/Xcode/DerivedData/Tower-bkpdifuqssebjdgurzmtirbxejnn/Build/Intermediates/Tower.build/Debug/Tower.build/Objects-normal/x86_64/TWRAppDelegate.o, file too small for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有谁知道怎么回事?
【问题讨论】:
-
尝试完全重建/清理。以前的构建可能已异常中止,导致
TWRAppDelegate.o文件损坏或大小为零。 -
一点精确:你用 cmd+shift+k 来做,如果不起作用,进入派生数据文件夹并删除名为你的项目的文件夹。
-
@RamyAlZuhouri:不再需要自己去垃圾箱构建文件夹了。按住 Option 键,Clean 命令(位于产品菜单中)变为“Clean Build Folder...”,这将为您完成。
-
Martin Baulig 的建议解决了我的问题。谢谢!
-
@PeterK。它为我赢得了“好问题”银质徽章 :-)
标签: objective-c ios xcode macos cocoa