Apple Mach-O Linker (ld) Error Group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am running: meteor run ios-device, and I am getting that in build-time error logs in XCode 8.3.2, running on macOS 10.12.4, and meteor version is: 1.2.1
Any help is more than welcome, I am completely lost at this.
OK, I solved the problem on my app by recreating a blank meteor project, carefully copying all code, asset and db files into the new folder, then reinstalling Meteor and npm packages.
Before reinstalling any Cordova plugin, I tried to deploy a build to iOS : it worked without problem. Then I reinstalled all Cordova plugins one by one, and noticed Xcode started to raise the Apple Mach-O Linker error again right after installing a specific plugin : phonegap-plugin-push.
But this time, the workspace workaround mentioned by @themuffinman worked again and I could deploy my app to iPhone.
Switching to new empty project and then adding stuff back in
Removing and adding ios platform
Opening workspace instead of project
Honestly, I’m giving up on development with Meteor/Cordova right now. My startup idea is not working out anyway, but for my next project I’ll go try react native
The same issue still exists in Meteor v1.6.1 .The root cause for me is the phonegap-plugin-push. I have had to rollback its version from 2.2.2 to1.9.4 to continue …
Had this come up. It appears to be due to a duplicate symbol. I had two different cordova plugins targeting similar IOS functionality, both using the same symbol in their code. Turns out I didn’t need one of the plugins so I just removed that one and it would build.