Linker command failed with exit code 1 error in Xcode project

后端 未结 21 3216
死守一世寂寞
死守一世寂寞 2021-02-13 06:44

I was working on my project and suddenly after editing the code and compiling gave this error:

ld: warning: directory not found for option \'-
L/Use

21条回答
  •  不思量自难忘°
    2021-02-13 07:32

    In case this comes in useful for anyone else--I just had this same error, and turns out the cause was initializing a variable in my header file rather than in the main file.

提交回复
热议问题