Running Ionic 3 app on iPhone throws error: 2 duplicate symbols for architecture arm64

我的未来我决定 提交于 2019-11-29 01:17:39

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

FlorentGui

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 cordova-ios@4.4.0
  • After that we should add platform with ionic cordova platform add ios@4.4.0
  • The last one, run ionic cordova build ios, that open with xcode and build with your settings.

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!