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

iOS build fails with return code 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova-ios 4.5.0
    • Fix Version/s: None
    • Component/s: cordova-ios
    • Labels:
      None
    • Environment:

      Mac OS 10.13 and CentOS 6.8, nodeĀ 8.9.2, cordova-cli 8.0.0

      Description

      Build an iOS app where the code signing fails. It will return a 0 exit code, when it should return a non-zero code.

      Example:

      cordova create CordovaTest com.sample.cordovatest CordovaTest
      cd CordovaTest
      cordova platform add ios@4.5.4
      cordova build ios --release --device '--codeSignIdentity=some-invalid-identity' '--developmentTeam=team-id' '--packageType=enterprise'

      End of output:

      === BUILD TARGET CordovaTest OF PROJECT CordovaTest WITH CONFIGURATION Release ===
      
      Check dependencies
      Code Signing Error: "CordovaTest" requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
      Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
      
      ** ARCHIVE FAILED **
      
      
      The following build commands failed:
        Check dependencies
      (1 failure)
      (node:42613) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/administrator/CordovaTest/platforms/ios/cordova/build-release.xcconfig,-workspace,CordovaTest.xcworkspace,-scheme,CordovaTest,-configuration,Release,-destination,generic/platform=iOS,-archivePath,CordovaTest.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/administrator/CordovaTest/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/administrator/CordovaTest/platforms/ios/build/sharedpch
      (node:42613) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      
      $ echo $?
      0
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jweber Jacob Weber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: