I\'m developing an application in Xcode.
When I try to build, this error comes up:
ld: in /Users/theodore/Library/Developer/Xcode/DerivedData/Tower-b
A clean rebuild didn´t in my case so i explain how i solved the problem:
- Removed reference to the file (don´t delete the file)
- Add the file to the project again and run
Quick way to fix error without complete cache clean:
TWRAppDelegate
)Stealing @martin-baulig's answer:
Try a full rebuild / clean. It's possible that the previous build has been abnormally aborted, leaving the TWRAppDelegate.o file corrupted or zero-size.
I usually add a space (could be any character for that matter) to the file in question, remove it and then save. Easier and quicker than a clean build.
rm -rf /Users/hostname/Library/Developer/Xcode/DerivedData
Since building a clean project may take way too long there is shorter way for those that have the access to the file that is corrupt in the cache:
Full version so you have no trouble finding the file: