EBDOKUM EBDOKUM - 1 year ago 120
iOS Question

"File too small for architecture arm64", "clang: error: linker command failed with exit code 1 "

I just tried to run an application on my iPad and got this error:

ld: file too small (length=0) file '(PathToMyProjectBuild)/Objects-normal/arm64/Palette.o' for architecture arm64
clang: error: linker command failed with exit code 1

My app runs great on iPhone and was gracefully running on my iPad, then suddenly I got this. What does it even mean and how can I solve the issue, since I am developing this app to mainly use it on my iPad, not iPhone (Though it is universal)?

Answer Source

This error usually happens after you interrupted a build. Product/Clean will usually fix it.

I believe the compiler is trying to save binary data in a file/space that was allocated by the interrupted build but the new binary data is larger than the previous one.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download