Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCAN] scan crashes when unit tests fail #6343

Closed
2 tasks done
troupmar opened this issue Sep 29, 2016 · 11 comments · Fixed by #6439
Closed
2 tasks done

[SCAN] scan crashes when unit tests fail #6343

troupmar opened this issue Sep 29, 2016 · 11 comments · Fixed by #6439

Comments

@troupmar
Copy link

New Issue Checklist

Issue Description

Scan crashes when unit tests fail. If all tests succeed, then it all works fine.

Complete output when running fastlane, including the stack trace and command used
Martin-MacBook-Pro:2N-push-notification-app Martin$ scan
[18:56:40]: $ xcodebuild -list -workspace ./2N-push-notification-app.xcworkspace
[18:56:41]: $ xcodebuild clean -showBuildSettings -workspace ./2N-push-notification-app.xcworkspace -scheme 2N-push-notification-app

+-----------------------+--------------------------------------------------------------------------+
|                                     Summary for scan 0.13.0                                      |
+-----------------------+--------------------------------------------------------------------------+
| scheme                | 2N-push-notification-app                                                 |
| device                | iPhone 6s                                                                |
| clean                 | true                                                                     |
| output_types          | html                                                                     |
| workspace             | ./2N-push-notification-app.xcworkspace                                   |
| derived_data_path     | /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notificatio... |
| code_coverage         | false                                                                    |
| address_sanitizer     | false                                                                    |
| skip_build            | false                                                                    |
| output_directory      | ./test_output                                                            |
| buildlog_path         | ~/Library/Logs/scan                                                      |
| open_report           | false                                                                    |
| skip_slack            | false                                                                    |
| slack_only_on_failure | false                                                                    |
| use_clang_report_name | false                                                                    |
+-----------------------+--------------------------------------------------------------------------+

[18:56:42]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace ./2N-push-notification-app.xcworkspace -scheme 2N-push-notification-app -destination 'platform=iOS Simulator,id=0E3F26F6-C988-4243-B4BF-CC220241C187' -derivedDataPath '/Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl' clean build test | tee '/Users/Martin/Library/Logs/scan/2N-push-notification-app-2N-push-notification-app.log' | xcpretty 
[18:56:42]: ▸ Loading...
[18:56:43]: ▸ Cleaning Pods/Alamofire [Debug]
[18:56:43]: ▸ Check Dependencies
[18:56:43]: ▸ Cleaning Pods/SnapKit [Debug]
[18:56:43]: ▸ Check Dependencies
[18:56:43]: ▸ Cleaning Pods/Pods-2N-push-notification-app [Debug]
[18:56:43]: ▸ Check Dependencies
[18:56:43]: ▸ Cleaning 2N-push-notification-app/2N-push-notification-app [Debug]
[18:56:43]: ▸ Check Dependencies
[18:56:43]: ▸ Clean Succeeded
[18:56:43]: ▸ Building Pods/Alamofire [Debug]
[18:56:43]: ▸ Check Dependencies
[18:56:43]: ▸ Processing Info.plist
[18:56:43]: ▸ Compiling AFError.swift
[18:56:45]: ▸ Compiling Alamofire.swift
[18:56:45]: ▸ Compiling DispatchQueue+Alamofire.swift
[18:56:45]: ▸ Compiling MultipartFormData.swift
[18:56:45]: ▸ Compiling NetworkReachabilityManager.swift
[18:56:46]: ▸ Compiling Notifications.swift
[18:56:46]: ▸ Compiling ParameterEncoding.swift
[18:56:46]: ▸ Compiling Request.swift
[18:56:47]: ▸ Compiling Response.swift
[18:56:47]: ▸ Compiling ResponseSerialization.swift
[18:56:47]: ▸ Compiling Result.swift
[18:56:47]: ▸ Compiling ServerTrustPolicy.swift
[18:56:47]: ▸ Compiling SessionDelegate.swift
[18:56:48]: ▸ Compiling SessionManager.swift
[18:56:48]: ▸ Compiling TaskDelegate.swift
[18:56:48]: ▸ Compiling Timeline.swift
[18:56:48]: ▸ Compiling Validation.swift
[18:56:51]: ▸ Compiling Alamofire_vers.c
[18:56:51]: ▸ Compiling Alamofire-dummy.m
[18:56:51]: ▸ Linking Alamofire
[18:56:52]: ▸ Copying Alamofire-umbrella.h
[18:56:52]: Running Tests: ▸ Touching Alamofire.framework
[18:56:52]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework
[18:56:52]: ▸ Building Pods/SnapKit [Debug]
[18:56:52]: ▸ Check Dependencies
[18:56:52]: ▸ Processing Info.plist
[18:56:52]: ▸ Compiling Constraint.swift
[18:56:52]: ▸ Compiling ConstraintAttributes.swift
[18:56:52]: ▸ Compiling ConstraintConfig.swift
[18:56:52]: ▸ Compiling ConstraintConstantTarget.swift
[18:56:52]: ▸ Compiling ConstraintDescription.swift
[18:56:52]: ▸ Compiling ConstraintDSL.swift
[18:56:52]: ▸ Compiling ConstraintInsets.swift
[18:56:52]: ▸ Compiling ConstraintInsetTarget.swift
[18:56:52]: ▸ Compiling ConstraintItem.swift
[18:56:52]: ▸ Compiling ConstraintLayoutGuide.swift
[18:56:52]: ▸ Compiling ConstraintLayoutGuideDSL.swift
[18:56:52]: ▸ Compiling ConstraintLayoutSupport.swift
[18:56:52]: ▸ Compiling ConstraintLayoutSupportDSL.swift
[18:56:52]: ▸ Compiling ConstraintMaker.swift
[18:56:52]: ▸ Compiling ConstraintMakerEditable.swift
[18:56:52]: ▸ Compiling ConstraintMakerExtendable.swift
[18:56:52]: ▸ Compiling ConstraintMakerFinalizable.swift
[18:56:52]: ▸ Compiling ConstraintMakerPriortizable.swift
[18:56:52]: ▸ Compiling ConstraintMakerRelatable.swift
[18:56:52]: ▸ Compiling ConstraintMultiplierTarget.swift
[18:56:52]: ▸ Compiling ConstraintOffsetTarget.swift
[18:56:52]: ▸ Compiling ConstraintPriorityTarget.swift
[18:56:52]: ▸ Compiling ConstraintRelatableTarget.swift
[18:56:52]: ▸ Compiling ConstraintRelation.swift
[18:56:52]: ▸ Compiling ConstraintView+Extensions.swift
[18:56:52]: ▸ Compiling ConstraintView.swift
[18:56:52]: ▸ Compiling ConstraintViewDSL.swift
[18:56:52]: ▸ Compiling Debugging.swift
[18:56:52]: ▸ Compiling LayoutConstraint.swift
[18:56:52]: ▸ Compiling UILayoutGuide+Extensions.swift
[18:56:52]: ▸ Compiling UILayoutSupport+Extensions.swift
[18:56:52]: ▸ Compiling SnapKit-dummy.m
[18:56:52]: ▸ Compiling SnapKit_vers.c
[18:56:52]: ▸ Linking SnapKit
[18:56:52]: ▸ Copying SnapKit-umbrella.h
[18:56:52]: Running Tests: ▸ Touching SnapKit.framework
[18:56:52]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework
[18:56:52]: ▸ Building Pods/Pods-2N-push-notification-app [Debug]
[18:56:52]: ▸ Check Dependencies
[18:56:52]: ▸ Processing Info.plist
[18:56:52]: ▸ Compiling Pods-2N-push-notification-app-dummy.m
[18:56:52]: ▸ Compiling Pods_2N_push_notification_app_vers.c
[18:56:52]: ▸ Copying Pods-2N-push-notification-app-umbrella.h
[18:56:52]: Running Tests: ▸ Touching Pods_2N_push_notification_app.framework
[18:56:52]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/Pods_2N_push_notification_app.framework
[18:56:52]: ▸ Building 2N-push-notification-app/2N-push-notification-app [Debug]
[18:56:52]: ▸ Check Dependencies
[18:56:52]: ▸ Running script '[CP] Check Pods Manifest.lock'
[18:56:52]: ▸ Compiling Network.swift
[18:56:53]: ▸ Compiling Constants.swift
[18:56:53]: ▸ Compiling CallController.swift
[18:56:53]: ▸ Compiling DeviceListTableHeaderView.swift
[18:56:53]: ▸ Compiling Device.swift
[18:56:53]: ▸ Compiling DeviceListTableViewDataSource.swift
[18:56:54]: ▸ Compiling DeviceListCustomTableCell.swift
[18:56:54]: ▸ Compiling Confirmation.swift
[18:56:54]: ▸ Compiling Notifying.swift
[18:56:54]: ▸ Compiling StringExtension.swift
[18:56:54]: ▸ Compiling Parser.swift
[18:56:54]: ▸ Compiling AppDelegate.swift
[18:56:55]: ▸ Compiling JSONparser.swift
[18:56:55]: ▸ Compiling DevicesListViewController.swift
[18:56:55]: ▸ Compiling Validating.swift
[18:56:55]: ▸ Compiling CallView.swift
[18:56:55]: ▸ Linking 2N-push-notification-app
[18:56:56]: ▸ Copying GoogleService-Info.plist
[18:56:58]: ▸ Compiling LaunchScreen.storyboard
[18:56:58]: ▸ Processing Info.plist
[18:56:58]: ▸ Running script '[CP] Embed Pods Frameworks'
[18:56:59]: ▸ Running script '[CP] Copy Pods Resources'
[18:57:00]: Running Tests: ▸ Touching 2N-push-notification-app.app
[18:57:00]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-app.app
[18:57:00]: ▸ Build Succeeded
[18:57:00]: ▸ 2016-09-29 18:57:00.818 xcodebuild[628:6458]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[18:57:00]: ▸ /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Logs/Test/E6617D5C-E1FF-4A49-B4F4-53E42F2E9CBC/Session-2N-push-notification-appUITests-2016-09-29_185700-uokb2v.log
[18:57:00]: ▸ 2016-09-29 18:57:00.819 xcodebuild[628:6451] [MT] IDETestOperationsObserverDebug: (A4F3287C-8ECC-4250-94F5-BB907CE125ED) Beginning test session 2N-push-notification-appUITests-A4F3287C-8ECC-4250-94F5-BB907CE125ED at 2016-09-29 18:57:00.817 with Xcode 8A218a on target <DVTiPhoneSimulator: 0x7fb26ae27140> {
[18:57:00]: ▸ SimDevice: SimDevice : iPhone 6s (0E3F26F6-C988-4243-B4BF-CC220241C187) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 10.0 (14A345) - com.apple.CoreSimulator.SimRuntime.iOS-10-0 }
[18:57:00]: ▸ } (10.0 (14A345))
[18:57:00]: ▸ 2016-09-29 18:57:00.848 xcodebuild[628:6461]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[18:57:00]: ▸ /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Logs/Test/E6617D5C-E1FF-4A49-B4F4-53E42F2E9CBC/Session-2N-push-notification-appTests-2016-09-29_185700-p9UrPl.log
[18:57:00]: ▸ 2016-09-29 18:57:00.848 xcodebuild[628:6451] [MT] IDETestOperationsObserverDebug: (FFF8219E-5112-4559-A666-94CD73BCA7B1) Beginning test session 2N-push-notification-appTests-FFF8219E-5112-4559-A666-94CD73BCA7B1 at 2016-09-29 18:57:00.848 with Xcode 8A218a on target <DVTiPhoneSimulator: 0x7fb26ae27140> {
[18:57:00]: ▸ SimDevice: SimDevice : iPhone 6s (0E3F26F6-C988-4243-B4BF-CC220241C187) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 10.0 (14A345) - com.apple.CoreSimulator.SimRuntime.iOS-10-0 }
[18:57:00]: ▸ } (10.0 (14A345))
[18:57:01]: ▸ Building Pods/Alamofire [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Building Pods/SnapKit [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Building Pods/Pods-2N-push-notification-app [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Building Pods/Pods-2N-push-notification-appUITests [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Building Pods/Pods-2N-push-notification-appTests [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Building 2N-push-notification-app/2N-push-notification-app [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Running script '[CP] Check Pods Manifest.lock'
[18:57:01]: ▸ Running script '[CP] Embed Pods Frameworks'
[18:57:01]: ▸ Running script '[CP] Copy Pods Resources'
[18:57:01]: ▸ Building 2N-push-notification-app/2N-push-notification-appTests [Debug]
[18:57:01]: ▸ Check Dependencies
[18:57:01]: ▸ Processing Info.plist
[18:57:03]: ▸ Running script '[CP] Check Pods Manifest.lock'
[18:57:05]: ▸ Compiling NetworkTests.swift
[18:57:05]: ▸ Compiling ParserTests.swift
[18:57:05]: ▸ Compiling XCTestCaseExtension.swift
[18:57:05]: ▸ Linking 2N-push-notification-appTests
[18:57:06]: ▸ Running script '[CP] Embed Pods Frameworks'
[18:57:06]: ▸ Running script '[CP] Copy Pods Resources'
[18:57:08]: Running Tests: ▸ Touching 2N-push-notification-appTests.xctest
[18:57:08]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-app.app/PlugIns/2N-push-notification-appTests.xctest
[18:57:08]: ▸ Building 2N-push-notification-app/2N-push-notification-appUITests [Debug]
[18:57:08]: ▸ Check Dependencies
[18:57:08]: ▸ Running script '[CP] Check Pods Manifest.lock'
[18:57:08]: ▸ Compiling XCTestCaseExtension.swift
[18:57:08]: ▸ Compiling WalkthroughTests.swift
[18:57:08]: ▸ Compiling XCTestCaseUISpecificExtension.swift
[18:57:08]: ▸ Linking 2N-push-notification-appUITests
[18:57:08]: ▸ Running script '[CP] Embed Pods Frameworks'
[18:57:08]: ▸ Running script '[CP] Copy Pods Resources'
[18:57:08]: Running Tests: ▸ Touching 2N-push-notification-appUITests.xctest
[18:57:08]: ▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-appUITests-Runner.app/PlugIns/2N-push-notification-appUITests.xctest
[18:57:18]: ▸ All tests
[18:57:18]: ▸ Test Suite 2N-push-notification-appUITests.xctest started
[18:57:18]: ▸ WalkthroughTests
[18:57:24]: ▸ ✓ testBasicWalkthrough (5.980 seconds)
[18:57:24]: ▸      Executed 1 test, with 0 failures (0 unexpected) in 5.980 (5.984) seconds
[18:57:24]: ▸ 
[18:57:29]: ▸ All tests
[18:57:29]: ▸ Test Suite 2N-push-notification-appTests.xctest started
[18:57:29]: ▸ NetworkTests
[18:57:29]: ▸ ✓ testGetDevices (0.138 seconds)
[18:57:34]: ▸ ✗ testMakeCall, Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "PUT make call".
[18:57:34]: ▸ ✗ testMakeCall, failed - Expectation failed with error: Error Domain=com.apple.XCTestErrorDomain Code=0 "(null)"!
[18:57:34]: ▸ ✗ testMakeCall,
[18:57:39]: ▸ ✗ testRegisterAndRemoveDevice, Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "POST device and DELETE device".
[18:57:39]: ▸ ✗ testRegisterAndRemoveDevice, failed - Expectation failed with error: Error Domain=com.apple.XCTestErrorDomain Code=0 "(null)"!
[18:57:39]: ▸ ✗ testRegisterAndRemoveDevice,
[18:57:39]: ▸ ParserTests
[18:57:39]: ▸ ✓ testParseDevice (0.004 seconds)
[18:57:39]: ▸ ✓ testParseDevices (0.001 seconds)
[18:57:39]: ▸ ✓ testParseDevicesWithInvalidStructure (0.002 seconds)
[18:57:39]: ▸ ✓ testParseDeviceWithInvalidStructure (0.001 seconds)
[18:57:39]: ▸ /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/syntax.rb:24:in `highlight_with_formatter': undefined method `include?' for nil:NilClass (NoMethodError)
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/syntax.rb:15:in `highlight'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:171:in `format_failure'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:157:in `block (2 levels) in format_failures'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:156:in `map'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:156:in `block in format_failures'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `each'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `map'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `format_failures'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:101:in `format_test_summary'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/parser.rb:563:in `format_summary_if_needed'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/parser.rb:336:in `parse'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:87:in `pretty_format'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/printer.rb:19:in `pretty_print'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:84:in `block in <top (required)>'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:83:in `each_line'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:83:in `<top (required)>'
[18:57:39]: ▸ from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/xcpretty:23:in `load'
[18:57:39]: ▸ from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/xcpretty:23:in `<main>'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'
[18:57:39]: ▸ from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'
[18:57:40]: ▸ Failing tests:
[18:57:40]: ▸ -[NetworkTests testMakeCall()]
[18:57:40]: ▸ -[NetworkTests testMakeCall()]
[18:57:40]: ▸ -[NetworkTests testRegisterAndRemoveDevice()]
[18:57:40]: ▸ -[NetworkTests testRegisterAndRemoveDevice()]
[18:57:40]: ▸ ** TEST FAILED **
▸ Cleaning Pods/Alamofire [Debug]
▸ Check Dependencies
▸ Cleaning Pods/SnapKit [Debug]
▸ Check Dependencies
▸ Cleaning Pods/Pods-2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Cleaning 2N-push-notification-app/2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Clean Succeeded
▸ Building Pods/Alamofire [Debug]
▸ Check Dependencies
▸ Processing Info.plist
▸ Compiling AFError.swift
▸ Compiling Alamofire.swift
▸ Compiling DispatchQueue+Alamofire.swift
▸ Compiling MultipartFormData.swift
▸ Compiling NetworkReachabilityManager.swift
▸ Compiling Notifications.swift
▸ Compiling ParameterEncoding.swift
▸ Compiling Request.swift
▸ Compiling Response.swift
▸ Compiling ResponseSerialization.swift
▸ Compiling Result.swift
▸ Compiling ServerTrustPolicy.swift
▸ Compiling SessionDelegate.swift
▸ Compiling SessionManager.swift
▸ Compiling TaskDelegate.swift
▸ Compiling Timeline.swift
▸ Compiling Validation.swift
▸ Compiling Alamofire_vers.c
▸ Compiling Alamofire-dummy.m
▸ Linking Alamofire
▸ Copying Alamofire-umbrella.h
▸ Touching Alamofire.framework
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework
▸ Building Pods/SnapKit [Debug]
▸ Check Dependencies
▸ Processing Info.plist
▸ Compiling Constraint.swift
▸ Compiling ConstraintAttributes.swift
▸ Compiling ConstraintConfig.swift
▸ Compiling ConstraintConstantTarget.swift
▸ Compiling ConstraintDescription.swift
▸ Compiling ConstraintDSL.swift
▸ Compiling ConstraintInsets.swift
▸ Compiling ConstraintInsetTarget.swift
▸ Compiling ConstraintItem.swift
▸ Compiling ConstraintLayoutGuide.swift
▸ Compiling ConstraintLayoutGuideDSL.swift
▸ Compiling ConstraintLayoutSupport.swift
▸ Compiling ConstraintLayoutSupportDSL.swift
▸ Compiling ConstraintMaker.swift
▸ Compiling ConstraintMakerEditable.swift
▸ Compiling ConstraintMakerExtendable.swift
▸ Compiling ConstraintMakerFinalizable.swift
▸ Compiling ConstraintMakerPriortizable.swift
▸ Compiling ConstraintMakerRelatable.swift
▸ Compiling ConstraintMultiplierTarget.swift
▸ Compiling ConstraintOffsetTarget.swift
▸ Compiling ConstraintPriorityTarget.swift
▸ Compiling ConstraintRelatableTarget.swift
▸ Compiling ConstraintRelation.swift
▸ Compiling ConstraintView+Extensions.swift
▸ Compiling ConstraintView.swift
▸ Compiling ConstraintViewDSL.swift
▸ Compiling Debugging.swift
▸ Compiling LayoutConstraint.swift
▸ Compiling UILayoutGuide+Extensions.swift
▸ Compiling UILayoutSupport+Extensions.swift
▸ Compiling SnapKit-dummy.m
▸ Compiling SnapKit_vers.c
▸ Linking SnapKit
▸ Copying SnapKit-umbrella.h
▸ Touching SnapKit.framework
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework
▸ Building Pods/Pods-2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Processing Info.plist
▸ Compiling Pods-2N-push-notification-app-dummy.m
▸ Compiling Pods_2N_push_notification_app_vers.c
▸ Copying Pods-2N-push-notification-app-umbrella.h
▸ Touching Pods_2N_push_notification_app.framework
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/Pods_2N_push_notification_app.framework
▸ Building 2N-push-notification-app/2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'
▸ Compiling Network.swift
▸ Compiling Constants.swift
▸ Compiling CallController.swift
▸ Compiling DeviceListTableHeaderView.swift
▸ Compiling Device.swift
▸ Compiling DeviceListTableViewDataSource.swift
▸ Compiling DeviceListCustomTableCell.swift
▸ Compiling Confirmation.swift
▸ Compiling Notifying.swift
▸ Compiling StringExtension.swift
▸ Compiling Parser.swift
▸ Compiling AppDelegate.swift
▸ Compiling JSONparser.swift
▸ Compiling DevicesListViewController.swift
▸ Compiling Validating.swift
▸ Compiling CallView.swift
▸ Linking 2N-push-notification-app
▸ Copying GoogleService-Info.plist
▸ Compiling LaunchScreen.storyboard
▸ Processing Info.plist
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Touching 2N-push-notification-app.app
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-app.app
▸ Build Succeeded
2016-09-29 18:57:00.818 xcodebuild[628:6458]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Logs/Test/E6617D5C-E1FF-4A49-B4F4-53E42F2E9CBC/Session-2N-push-notification-appUITests-2016-09-29_185700-uokb2v.log
2016-09-29 18:57:00.819 xcodebuild[628:6451] [MT] IDETestOperationsObserverDebug: (A4F3287C-8ECC-4250-94F5-BB907CE125ED) Beginning test session 2N-push-notification-appUITests-A4F3287C-8ECC-4250-94F5-BB907CE125ED at 2016-09-29 18:57:00.817 with Xcode 8A218a on target <DVTiPhoneSimulator: 0x7fb26ae27140> {
SimDevice: SimDevice : iPhone 6s (0E3F26F6-C988-4243-B4BF-CC220241C187) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 10.0 (14A345) - com.apple.CoreSimulator.SimRuntime.iOS-10-0 }
} (10.0 (14A345))
2016-09-29 18:57:00.848 xcodebuild[628:6461]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Logs/Test/E6617D5C-E1FF-4A49-B4F4-53E42F2E9CBC/Session-2N-push-notification-appTests-2016-09-29_185700-p9UrPl.log
2016-09-29 18:57:00.848 xcodebuild[628:6451] [MT] IDETestOperationsObserverDebug: (FFF8219E-5112-4559-A666-94CD73BCA7B1) Beginning test session 2N-push-notification-appTests-FFF8219E-5112-4559-A666-94CD73BCA7B1 at 2016-09-29 18:57:00.848 with Xcode 8A218a on target <DVTiPhoneSimulator: 0x7fb26ae27140> {
SimDevice: SimDevice : iPhone 6s (0E3F26F6-C988-4243-B4BF-CC220241C187) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 10.0 (14A345) - com.apple.CoreSimulator.SimRuntime.iOS-10-0 }
} (10.0 (14A345))
▸ Building Pods/Alamofire [Debug]
▸ Check Dependencies
▸ Building Pods/SnapKit [Debug]
▸ Check Dependencies
▸ Building Pods/Pods-2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Building Pods/Pods-2N-push-notification-appUITests [Debug]
▸ Check Dependencies
▸ Building Pods/Pods-2N-push-notification-appTests [Debug]
▸ Check Dependencies
▸ Building 2N-push-notification-app/2N-push-notification-app [Debug]
▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Building 2N-push-notification-app/2N-push-notification-appTests [Debug]
▸ Check Dependencies
▸ Processing Info.plist
▸ Running script '[CP] Check Pods Manifest.lock'
▸ Compiling NetworkTests.swift
▸ Compiling ParserTests.swift
▸ Compiling XCTestCaseExtension.swift
▸ Linking 2N-push-notification-appTests
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Touching 2N-push-notification-appTests.xctest
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-app.app/PlugIns/2N-push-notification-appTests.xctest
▸ Building 2N-push-notification-app/2N-push-notification-appUITests [Debug]
▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'
▸ Compiling XCTestCaseExtension.swift
▸ Compiling WalkthroughTests.swift
▸ Compiling XCTestCaseUISpecificExtension.swift
▸ Linking 2N-push-notification-appUITests
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Touching 2N-push-notification-appUITests.xctest
▸ Signing /Users/Martin/Library/Developer/Xcode/DerivedData/2N-push-notification-app-heekrjeoovthmfaybxyoyaobmyzl/Build/Products/Debug-iphonesimulator/2N-push-notification-appUITests-Runner.app/PlugIns/2N-push-notification-appUITests.xctest
All tests
Test Suite 2N-push-notification-appUITests.xctest started
WalkthroughTests
✓ testBasicWalkthrough (5.980 seconds)


     Executed 1 test, with 0 failures (0 unexpected) in 5.980 (5.984) seconds

All tests
Test Suite 2N-push-notification-appTests.xctest started
NetworkTests
✓ testGetDevices (0.138 seconds)
✗ testMakeCall, Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "PUT make call".
✗ testMakeCall, failed - Expectation failed with error: Error Domain=com.apple.XCTestErrorDomain Code=0 "(null)"!
✗ testMakeCall,
✗ testRegisterAndRemoveDevice, Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "POST device and DELETE device".
✗ testRegisterAndRemoveDevice, failed - Expectation failed with error: Error Domain=com.apple.XCTestErrorDomain Code=0 "(null)"!
✗ testRegisterAndRemoveDevice,
ParserTests
✓ testParseDevice (0.004 seconds)
✓ testParseDevices (0.001 seconds)
✓ testParseDevicesWithInvalidStructure (0.002 seconds)
✓ testParseDeviceWithInvalidStructure (0.001 seconds)
/Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/syntax.rb:24:in `highlight_with_formatter': undefined method `include?' for nil:NilClass (NoMethodError)
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/syntax.rb:15:in `highlight'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:171:in `format_failure'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:157:in `block (2 levels) in format_failures'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:156:in `map'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:156:in `block in format_failures'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `each'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `map'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:155:in `format_failures'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:101:in `format_test_summary'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/parser.rb:563:in `format_summary_if_needed'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/parser.rb:336:in `parse'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/formatters/formatter.rb:87:in `pretty_format'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/lib/xcpretty/printer.rb:19:in `pretty_print'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:84:in `block in <top (required)>'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:83:in `each_line'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/xcpretty-0.2.3/bin/xcpretty:83:in `<top (required)>'
from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/xcpretty:23:in `load'
from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/xcpretty:23:in `<main>'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'
from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'
Failing tests:
-[NetworkTests testMakeCall()]
-[NetworkTests testMakeCall()]
-[NetworkTests testRegisterAndRemoveDevice()]
-[NetworkTests testRegisterAndRemoveDevice()]
** TEST FAILED **
[18:57:40]: Exit status: 1
[18:57:40]: Couldn't parse the number of tests from the output
[18:57:41]: Successfully sent Slack notification

Looking for related GitHub issues on fastlane/fastlane...

➡️  pilot upload failure undefined method `builds' for nil:NilClass
   https://github.com/fastlane/fastlane/issues/6267 [open] 4 💬
   a day ago

➡️  undefined method `fetch' for nil:NilClass
   https://github.com/fastlane/fastlane/issues/5677 [open] 1 💬
   7 weeks ago

➡️  Pilot tool is crashing with undefined method 'strip' for nil:NilClass (NoMethodError)
   https://github.com/fastlane/fastlane/issues/3238 [open] 0 💬
   2 weeks ago

and 172 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60%3E'%20for%20nil&type=Issues&utf8=✓
/Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/runner.rb:68:in `handle_results': [!] undefined method `>' for nil:NilClass (NoMethodError)
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/runner.rb:9:in `run'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/manager.rb:10:in `work'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/commands_generator.rb:41:in `block (2 levels) in run'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/fastlane_core-0.52.0/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/commands_generator.rb:60:in `run'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/lib/scan/commands_generator.rb:14:in `start'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/gems/scan-0.13.0/bin/scan:6:in `<top (required)>'
    from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/scan:23:in `load'
    from /Users/Martin/.rvm/rubies/ruby-2.3.0/bin/scan:23:in `<main>'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'
    from /Users/Martin/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

!!! Only using scan, thus only scanfile is provided !!!

Scanfile:

# For more information about this configuration visit
# https://github.com/fastlane/fastlane/tree/master/scan#scanfile

# In general, you can use the options available
# scan --help

# Remove the # in front of the line to enable the option

 scheme "2N-push-notification-app"

# open_report true

device "iPhone 6s"

clean true

slack_url "https://hooks.slack.com/services/xxxxx"

output_types "html"

Environment

fastlane version (run fastlane -v): fastlane 1.104.0, scan 0.13.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? NO

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? NO

@fastlane-bot
Copy link

It seems like this issue might be related to code signing 🚫

Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues 👍

@troupmar
Copy link
Author

We use a server with continuous integration and scan works there just fine. My co-worker has a different version of Ruby and it works for him so I have tried to use the same version as he does but none of that helped.

@franco-octavianus
Copy link

franco-octavianus commented Oct 4, 2016

I have the same issue, seems like the file_path is nil?
https://github.com/supermarin/xcpretty/blob/master/lib/xcpretty/syntax.rb#L24
Is there an option to disable xcpretty altogether? i.e. not piping xcpretty.

@ricardopereira
Copy link

ricardopereira commented Oct 4, 2016

Me too, same issue: https://travis-ci.org/ably/ably-ios/builds/165044578

@ricardopereira
Copy link

The issue about xcpretty: xcpretty/xcpretty#241

@ricardopereira
Copy link

ricardopereira commented Oct 5, 2016

Does scan always use the latest version of xcpretty?

@troupmar
Copy link
Author

troupmar commented Oct 5, 2016

@ricardopereira Thanks, it is indeed an issue of xcpretty. The new version 0.2.4 is to be released today but for now you can downgrade to version 0.2.2. That worked for me.

gem uninstall xcpretty
gem install xcpretty -v 0.2.2

@franco-octavianus
Copy link

@troupmar because I'm using scan inside one of my fastlane lane, I need to downgrade more things to make it work. I had to downgrade, fastlane, snapshot, gym, scan, they all have dependency to xcpretty >= 0.2.3.

@ricardopereira
Copy link

@troupmar Thanks!
@rafnocx Can you share your downgrades, please?

@franco-octavianus
Copy link

@ricardopereira here it is

gem install fastlane -v 1.103.0
gem install snapshot -v 1.14.0
gem install gym -v 1.7.0
gem install scan -v 0.11.3
gem install xcpretty -v 0.2.2

@TKBurner
Copy link

TKBurner commented Oct 6, 2016

@rafnocx @ricardopereira @troupmar Thanks for reaching out about this. We are going to look this over here and take action if we can. 👍

KrauseFx added a commit that referenced this issue Oct 6, 2016
KrauseFx added a commit that referenced this issue Oct 6, 2016
KrauseFx added a commit that referenced this issue Oct 6, 2016
Downgrade xcpretty dependency due to #6343
KrauseFx added a commit that referenced this issue Oct 7, 2016
Downgrade xcpretty dependency due to #6343
@fastlane fastlane locked and limited conversation to collaborators Jan 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants