From issues-return-93705-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Tue Mar 27 12:57:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D7A6018064E for ; Tue, 27 Mar 2018 12:57:05 +0200 (CEST) Received: (qmail 13782 invoked by uid 500); 27 Mar 2018 10:57:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 13765 invoked by uid 99); 27 Mar 2018 10:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2018 10:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 45F1D180033 for ; Tue, 27 Mar 2018 10:57:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.811 X-Spam-Level: X-Spam-Status: No, score=-109.811 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id A_yYEDKAZwei for ; Tue, 27 Mar 2018 10:57:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 000FC5F4EB for ; Tue, 27 Mar 2018 10:57:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 237DEE02F0 for ; Tue, 27 Mar 2018 10:57:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 626C62150E for ; Tue, 27 Mar 2018 10:57:00 +0000 (UTC) Date: Tue, 27 Mar 2018 10:57:00 +0000 (UTC) From: "Tobias Larscheid (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13959) iOS build fails with return code 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13959?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164154= 12#comment-16415412 ]=20 Tobias Larscheid commented on CB-13959: --------------------------------------- Honestly, I think this problem is more severe. On my mac the cordova cli ju= st _always_ returns 0 - even if a command failed for whatever reason. This = is especially inconvenient when using the cordova cli on a jenkins - your b= uild never fails... > iOS build fails with return code 0 > ---------------------------------- > > Key: CB-13959 > URL: https://issues.apache.org/jira/browse/CB-13959 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Affects Versions: cordova-ios 4.5.0 > Environment: Mac OS 10.13 and CentOS 6.8, node=C2=A08.9.2, cordov= a-cli 8.0.0 > Reporter: Jacob Weber > Assignee: Suraj Pindoria > Priority: Major > > Build an iOS app where the code signing fails. It will return a 0 exit co= de, when it should return a non-zero code. > Example: > {code:java} > cordova create CordovaTest com.sample.cordovatest CordovaTest > cd CordovaTest > cordova platform add ios@4.5.4 > cordova build ios --release --device '--codeSignIdentity=3Dsome-invalid-i= dentity' '--developmentTeam=3Dteam-id' '--packageType=3Denterprise'{code} > End of output: > {code:java} > =3D=3D=3D BUILD TARGET CordovaTest OF PROJECT CordovaTest WITH CONFIGURAT= ION Release =3D=3D=3D > Check dependencies > Code Signing Error: "CordovaTest" requires a provisioning profile. Select= a provisioning profile for the "Release" build configuration in the projec= t editor. > Code Signing Error: Code signing is required for product type 'Applicatio= n' in SDK 'iOS 11.2' > ** ARCHIVE FAILED ** > The following build commands failed: > Check dependencies > (1 failure) > (node:42613) UnhandledPromiseRejectionWarning: Unhandled promise rejectio= n (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcco= nfig,/Users/administrator/CordovaTest/platforms/ios/cordova/build-release.x= cconfig,-workspace,CordovaTest.xcworkspace,-scheme,CordovaTest,-configurati= on,Release,-destination,generic/platform=3DiOS,-archivePath,CordovaTest.xca= rchive,archive,CONFIGURATION_BUILD_DIR=3D/Users/administrator/CordovaTest/p= latforms/ios/build/device,SHARED_PRECOMPS_DIR=3D/Users/administrator/Cordov= aTest/platforms/ios/build/sharedpch > (node:42613) [DEP0018] DeprecationWarning: Unhandled promise rejections a= re deprecated. In the future, promise rejections that are not handled will = terminate the Node.js process with a non-zero exit code. > $ echo $? > 0 > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org