Ios Build Failed with Exception


#1

Hi,
** I’m Building an application with command ionic cordova build ios but it gives an error like below**

/Users/apple/Documents/vijay/flipbox/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld /Users/apple/Documents/vijay/flipbox/platforms/ios/build/emulator/FlipBox.app/FlipBox normal x86_64
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/Documents/vijay/flipbox/platforms/ios/cordova/build-debug.xcconfig,-workspace,FlipBox.xcworkspace,-scheme,FlipBox,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios (exit code 1).

and i’m using these versions for build

cli packages: (/Users/apple/Documents/vijay/FlipBox/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.7
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.1 
Node       : v8.7.0
npm        : 5.4.2 
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro