After updating my POD install, Xcode sprouted a new issue:
Make sure you open the .xcworkspace
file rather than the project file (.xcodeproj
) when working with pods. That should solve the issue with linking.
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:
Sounds stupid and I have no idea why, but it worked.
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.
the solution for me was open the .xcworkspace file insted of .xcodeproj located inside my '/platforms/ios' folder.