Apple Mach -O Linker command failed

前端 未结 16 1194
名媛妹妹
名媛妹妹 2021-01-07 17:08

After updating my POD install, Xcode sprouted a new issue:

相关标签:
16条回答
  • 2021-01-07 17:31

    Close you project and go to project path and select your project with .xcworkspace instead of .xcodeproj. Reason your existing project doesn't contain any library you linked.

    0 讨论(0)
  • 2021-01-07 17:32

    Solved - Best Way

    pod deintegrate  
    pod install
    

    Open xcworkspace and clean it before running.

    0 讨论(0)
  • 2021-01-07 17:33

    There are several cases that cause this issue. At the moment, this question has no any accepted answer and also I found another solution for the same issue, I am posting my answer/experience here.

    In you application, go to Target -> Build Settings, then you will find following attributes.

    • CLANG_WARN_INFINITE_RECURSION
    • CLANG_WARN_SUSPICIOUS_MOVE
    • GCC_NO_COMMON_BLOCKS

    Set values for those as NO, then clean and build the project.

    0 讨论(0)
  • 2021-01-07 17:34

    I had faced the same issue. I declared two classes with same name. Therefore it was conflicting with the class name. It worked for me after updation of class name.

    0 讨论(0)
  • 2021-01-07 17:35

    I had a similar problem and I just had to make sure to enable the "copy if necessary" checkbox when adding the framework into the project. Reference only didn't work for me...

    0 讨论(0)
  • 2021-01-07 17:36

    Following steps helped me to get rid of this problem:

    1. Go to project path and remove Pods folder and Podfile.lock file.
    2. Reinstall pods again using "pod install" command.
    3. Open xcworkspace and clean it before running.

    Hope it will save someone's time like it did for me.

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