Ionic cordova run ios failing


#1

Dear Experts,

I am able to build my app for Android device but when i am trying it for ios then it is failing with following errors:

Ld build/emulator/mAppSkool.app/mAppSkool normal x86_64
    cd "/Users/ankitkau/Ankit Kaushik/ionic/mapskool-ionic3/platforms/ios"
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/ankitkau/Ankit Kaushik/ionic/mapskool-ionic3/node_modules/.bin:/Users/ankitkau/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ankitkau/Development/gradle-4.9/bin:/Users/ankitkau/Library/Android/sdk/platform-tools:/Users/ankitkau/Library/Android/sdk/tools:/Applications/Android Studio.app/Contents/gradle/gradle-4.4/bin:/Users/ankitkau/Library/Android/sdk/platform-tools:/Users/ankitkau/Library/Android/sdk/tools"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -L/Users/ankitkau/Ankit\ Kaushik/ionic/mapskool-ionic3/platforms/ios/build/emulator -F/Users/ankitkau/Ankit\ Kaushik/ionic/mapskool-ionic3/platforms/ios/build/emulator -FmAppSkool/Plugins/cordova-plugin-facebook4 -FmAppSkool/Plugins/cordova-plugin-firebase -FmAppSkool/Plugins/cordova-plugin-googleplus -filelist /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/mAppSkool.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/mAppSkool_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/mAppSkool.app.xcent /Users/ankitkau/Ankit\ Kaushik/ionic/mapskool-ionic3/platforms/ios/build/emulator/libCordova.a -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -lz -framework Bolts -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework Crashlytics -framework Fabric -framework GoogleAppMeasurement -framework MeasurementNanoPB -framework FirebaseCore -framework FirebaseAnalytics -framework GoogleUtilities -framework nanopb -framework FirebaseInstanceID -framework FirebaseCoreDiagnostics -framework GTMSessionFetcher -framework FirebaseAuth -framework FirebaseMessaging -framework GoogleToolboxForMac -framework FirebasePerformance -framework Protobuf -framework FirebaseRemoteConfig -framework FirebaseABTesting -framework GoogleAppUtilities -framework GoogleAuthUtilities -framework GoogleNetworkingUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleUtilities -weak_framework AddressBook -weak_framework CoreText -weak_framework SafariServices -weak_framework Security -weak_framework SystemConfiguration -weak-lz -weak_framework WebKit -framework MediaPlayer -framework Accelerate -framework Photos -framework QuartzCore -weak_framework Social -weak_framework MessageUI -framework CoreBluetooth -framework UserNotifications -framework Contacts -framework EventKit -framework CoreMotion -Xlinker -dependency_info -Xlinker /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/mAppSkool_dependency_info.dat -o /Users/ankitkau/Ankit\ Kaushik/ionic/mapskool-ionic3/platforms/ios/build/emulator/mAppSkool.app/mAppSkool
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog._overlay in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog._messageView in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog._indicator in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog.indicator in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_CLASS_$_CDVSpinnerDialog in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_METACLASS_$_CDVSpinnerDialog in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog.title in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog.message in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog.isFixed in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
duplicate symbol _OBJC_IVAR_$_CDVSpinnerDialog.callbackId in:
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-AC0F31687FAD953.o
    /Users/ankitkau/Library/Developer/Xcode/DerivedData/mAppSkool-aoysjxarlnhrlgbghncssbvrsgzy/Build/Intermediates.noindex/mAppSkool.build/Debug-iphonesimulator/mAppSkool.build/Objects-normal/x86_64/CDVSpinnerDialog-486F2C7D5E440152.o
ld: 10 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 build/emulator/mAppSkool.app/mAppSkool normal x86_64
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ankitkau/Ankit Kaushik/ionic/mapskool-ionic3/platforms/ios/cordova/build-debug.xcconfig,-workspace,mAppSkool.xcworkspace,-scheme,mAppSkool,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/ankitkau/Ankit Kaushik/ionic/mapskool-ionic3/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ankitkau/Ankit Kaushik/ionic/mapskool-ionic3/platforms/ios/build/sharedpch
[ERROR] An error occurred while running subprocess cordova.

        cordova run ios --emulator exited with exit code 1.

        Re-running this command with the --verbose flag may provide more
        information.

Here are the platform details:

Ionic:

   ionic (Ionic CLI)  : 4.1.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-webview 1.2.1, (and 21 other plugins)

System:

   ios-deploy : 1.9.2
   ios-sim    : 5.0.13
   NodeJS     : v8.11.2 (/usr/local/bin/node)
   npm        : 6.4.1
   OS         : macOS Sierra
   Xcode      : Xcode 9.2 Build version 9C40b



   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 4.1.1 → 4.5.0    │
   │    Run npm i -g ionic to update     │
   │                                     │
   ╰─────────────────────────────────────╯

List of plugins used in my app are as follows:

cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-facebook4 1.10.1 "Facebook Connect"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googleplus 5.2.1 "Google SignIn"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-native-spinner 1.1.3 "Native Spinner"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-spinner-dialog 1.3.1 "SpinnerDialog"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-streaming-media 2.2.0 "StreamingMedia"
cordova-plugin-telerik-imagepicker 2.2.2 "ImagePicker"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 2.4.0 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Any help is highly appreciated.

It is giving error of Spinner Dialog which is not available in my project. I was using it earlier but removed it after this error. node_modules folder and ios platform have been removed and added again but i still see the same error.


#2

Whenever i upgrade plugins there is always a risk of failure. Is there any full proof way of building the app?