Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10310

iOS Build fails after upgrade to cordova-ios@4.0.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • cordova-ios

    Description

      I'm working on an ionic app and just upgrade the ios platform to 4.0.1.

      i am unable to build the ios app now using the command
      "ionic build ios" or "cordova build ios"

      i observed the error is arising from the various plugins which are failing now.
      i removed the plugins one after another to see how many plugins are incompatible
      and not working and found the below 5 plugins are raising the same error

      cordova-plugin-camera 1.2.0 "Camera"
      cordova.plugins.diagnostic 2.3.5 "Diagnostic"
      com.cordova.plugins.sms 0.1.6 "Cordova SMS Plugin"
      com.dbaq.cordova.contactsPhoneNumbers 0.0.5 "Contacts Phone Numbers"
      cordova-plugin-sms 1.0.5 "SMS"

      Error sample raised for sms plugin looks as below

        • BUILD FAILED **

      The following build commands failed:
      CompileC build/qiddlestage.build/Debug-iphonesimulator/qiddlestage.build/Objects-normal/i386/Sms.o qiddlestage/Plugins/com.cordova.plugins.sms/Sms.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      (1 failure)
      ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jagdish/work/ywt-moms/platforms/ios/cordova/build-debug.xcconfig,-project,qiddlestage.xcodeproj,ARCHS=i386,-target,qiddlestage,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jagdish/work/ywt-moms/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jagdish/work/ywt-moms/platforms/ios/build/sharedpch
      You may not have the required environment or OS to build this project
      Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jagdish/work/ywt-moms/platforms/ios/cordova/build-debug.xcconfig,-project,qiddlestage.xcodeproj,ARCHS=i386,-target,qiddlestage,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jagdish/work/ywt-moms/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jagdish/work/ywt-moms/platforms/ios/build/sharedpch

      also attaching error screenshots with various plugins.

      Attachments

        1. build error with cordova-plugin-camera.png
          769 kB
          Jagdish Adusumalli
        2. build error cordova-plugin-diagnostic.png
          758 kB
          Jagdish Adusumalli
        3. build error with cordova-plugin-sms.png
          866 kB
          Jagdish Adusumalli

        Activity

          People

            Unassigned Unassigned
            jagdishadusumalli Jagdish Adusumalli
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: