Apple Mach -O Linker command failed

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

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

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

    Make sure you open the .xcworkspace file rather than the project file (.xcodeproj) when working with pods. That should solve the issue with linking.

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

    I have no clue why the error occurred in my case, I was reusing some code from another project I created a while ago and after I adapted the code, then I always got the "Apple Mach -O Linker command failed"- Message. My best guess is, that it happened because I created/deleted some files from the project.

    The thing that solved it for me was this:

    • Create a new Project
    • copy all the necessary files from the old project to the new one (Drag and Drop, don't forget the "Copy if needed" Checkbox)
    • Build and see that it works

    Sounds stupid and I have no idea why, but it worked.

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

    I experienced the error when overwriting project.

    Still encountered the error after:

    • Changing the clang settings

    • ionic cordova platform remove ios rather than just delete ios platform folder before each new build (and of course add the platform again)

    • updating ruby as per instructions: https://forum.ionicframework.com/t/x-code-8-beta-2-apple-mach-o-linker-id-error/71998

    Error was solved after changing to a different branch in github but perhaps one of the other troubleshooting methods played a part. Now all branches run on xcode without the Mach -O Linker Error.

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

    the solution for me was open the .xcworkspace file insted of .xcodeproj located inside my '/platforms/ios' folder.

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