I am opening .xcworkspace
of my Ionic 3 project and trying to run it on my device but I suddenly get the following error in Xcode:
Ld /Users/man
The problem here is cordova-ios@latest.
And we could fixed this issues with:
npm uninstall cordova-ios
npm install cordova-ios@4.4.0
ionic cordova platform add ios@4.4.0
ionic cordova build ios
, that open with xcode and build with your settings.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
Since cordova IOS 4.5 they are including cordova-plugin-console, which results in the plugin being duplicated.
To fix just run:
cordova plugin rm cordova-plugin-console
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.
The solution @arunraj414 worked for me, from xcode you can solve it this way:
Delete either one