Linker command failed with exit code 1 error in Xcode project

后端 未结 21 3211
死守一世寂寞
死守一世寂寞 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:09

    I just encountered the same error. If you are using embedded Libraries, make sure your Deployment Target is set to iOS 8.0 or higher.

    0 讨论(0)
  • 2021-02-13 07:09

    Go to general and linked frameworks and libraries in xcode and remove all the files there.

    enter image description here

    0 讨论(0)
  • 2021-02-13 07:10

    After running into this problem a few minutes ago (yes, I know it's been 7 months since the original thread) I found that the root of my issue was due to me dragging & dropping files into my project within XCode instead of right-clicking and choosing Add Files to Project.

    0 讨论(0)
  • 2021-02-13 07:13

    I also got this error because I had accidentally included two versions of the same source file. Deleted the wrong one and the problem went away...

    0 讨论(0)
  • 2021-02-13 07:15

    If you're working in Unity and export to iOS and you are using a plugin, go to Xcode Build Settings and set ENABLE BITCODE = NO. I'm guessing this might apply to other situations as well

    0 讨论(0)
  • 2021-02-13 07:16

    try this, go to Target -> Build Settings,then search these three as following,

    GCC_NO_COMMON_BLOCKS,

    CLANG_WARN_INFINITE_RECURSION,

    CLANG_WARN_SUSPICIOUS_MOVE,

    set NO to each value then clean and build.

    0 讨论(0)
提交回复
热议问题