Running Ionic 3 app on iPhone throws error: 2 duplicate symbols for architecture arm64
To solve the problem please have a look over this blog post from Cordova iOS 4.5. http://cordova.apache.org/announcements/2017/09/08/ios-release.html
You need to remove plugin "cordova-plugin-console" that is installed by default when generating a new Ionic project. Now this is in core part of cordova for iOS.
Since duplicate symbols are there, just removed "-ObjC" from both Targets and Project:
Build Settings -> Linking -> Other linker flags.
also try to remove any unwanted libraries from
Targets -> Build Phases -> Link Binary with Libraries
The problem here is cordova-ios@latest.
And we could fixed this issues with:
- Uninstall cordova-ios first, with
npm uninstall cordova-ios
- Install cordova-ios with
npm install [email protected]
- After that we should add platform with
ionic cordova platform add [email protected]
- The last one, run
ionic cordova build ios
, that open with xcode and build with your settings.