[
https://issues.apache.org/jira/browse/CB-13959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16415412#comment-16415412
]
Tobias Larscheid commented on CB-13959:
---------------------------------------
Honestly, I think this problem is more severe. On my mac the cordova cli just
_always_ returns 0 - even if a command failed for whatever reason. This is
especially inconvenient when using the cordova cli on a jenkins - your build
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Ā 8.9.2, cordova-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 code,
> when it should return a non-zero code.
> Example:
> {code:java}
> cordova create CordovaTest com.sample.cordovatest CordovaTest
> cd CordovaTest
> cordova platform add [email protected]
> cordova build ios --release --device
> '--codeSignIdentity=some-invalid-identity' '--developmentTeam=team-id'
> '--packageType=enterprise'{code}
> End of output:
> {code:java}
> === 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
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]