Ionic 2 building issue

I’m working on an app that is using ionic push notification and ionic auth. I can build the app on the CLI, but when I use the xcode to build and test on the device I get the following error.

Apple Mach-O Linker (id) Error
Linker command failed with exit code 1 (use -v to see invocation).

Any idea how to fix this? or what is causing this issue?

Here is my system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
OS: macOS Sierra
Node Version: v6.9.4
Xcode Version: Xcode 8.3 Build version 8E162

thanks

If you opened the .xcodeproj file in xcode, close it and open .xcworkspace instead. This solved the issue for me.

1 Like